About checkbutton in tkinter

Hello, I want to make an if condition according To the state of thé checkbutton. This is thé part le my code where i think there is a problem abc=IntVar() Checkb=Checkbutton(fenetre,text='quit ?', variable=abc) Checkb.grid() If abc.get()==1: fenetre.destroy() Can you help me ? Thank you.

18th Mar 2020, 10:13 AM
iren yeger
iren yeger - avatar
1 Answer
+ 3
This is serious Check online
24th Mar 2020, 7:21 AM
Akintunde Taofeek
Akintunde Taofeek - avatar