Python GUI Tutorial - 23 - Checkbutton | Tkinter

Publié le: 15 juillet 2018
sur la chaîne: Indrajeet Singh
16,730
151

In this video, you'll learn about Checkbutton or Checkbox in Tkinter. It is very easy to create and use CheckButton in TKinter.

Here is the example -

from tkinter import *

def click_me():
print(i.get())

root = Tk()

i = StringVar()
c = Checkbutton(root, text="item 1", variable=i, offvalue="unchecked", onvalue="checked")
c.pack()

button = Button(root, text="click me", command=click_me)
button.pack()
root.geometry("300x300+120+120")
root.mainloop()


-------------------------------------------------------



i am sure your queries like-
how to create checkbox in tkinter?
how to create CheckButton in tkinter?
how to craete checkboxes in tkinter in hindi?
how to get value from checkbox in tkinter?
how to know whether checkbutton is clicked or not in tkinter?
how to checked or unchecked checkbox in tkinter?
how to get string value from a checkbox after clicked or unclicked?
how to fetch the value of checkbox on clicking a button in tkinter?

have been solved.


If you have any problem related with this video then please let us know in comment box. we'll reply as soon as possible.

Thanks.

contact us
facebook -   / programmingcage  


Sur cette page du site, vous pouvez voir la vidéo en ligne Python GUI Tutorial - 23 - Checkbutton | Tkinter durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur Indrajeet Singh 15 juillet 2018, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 16,730 fois et il a aimé 151 téléspectateurs. Bon visionnage!