Hello, in this python programming video, we are going to look at implementing a checkbox, at least as far as coding a lot of other sort of, you know, GUI interfaces is called a check button in here, I'll get I guess that makes sense as well some that you can check on and off and it is you know, the form of a button. Okay, so to do that what we've already got is you know, just a basic template of eyes happen to close this and reopen the ball something that happens in my ID reopen Okay, so, the basic template for gooey stuff and in here, we just need to do CV equals into author is this an integer variable. Let's make sure you got from t content import everything. We'll need that for the info Nevin this check button so this is the actual button itself. Check button and this needs a few parameters one will be windows Both ways gonna draw to wanderley text which is basically the text that will be displayed by the check for turns on the text the variable to the integer variable that we created an on value equals one.
So that just allows us to modify what the value mean if it's on or off value is zero pre default, but you could change it to either no 520 if you want to totally up to you fight code 40 and the equals 40 so 30 or 30 Finally, we just need to CB dot pack so this actually wraps it up and if we run it, check button is not be fine. Okay. mystery is a lowercase b. And there we go. We have our laughing right here, we've got the text boom in the bottom right Thompson very wide, hence why the text is like that. But apart from that, that it does nothing more to it than that.
Thanks for watching. If you have any questions, feel free to reach out and I look forward to seeing you in the next video.