Python GUI Tutorial - 23 - Checkbutton | Tkinter

Publicado el: 15 julio 2018
en el canal de: 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  


En esta página del sitio puede ver el video en línea Python GUI Tutorial - 23 - Checkbutton | Tkinter de Duración hora minuto segunda en buena calidad , que subió el usuario Indrajeet Singh 15 julio 2018, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 16,730 veces y le gustó 151 a los espectadores. Disfruta viendo!