Home > other >  Check a specific checkbox with tkinter
Check a specific checkbox with tkinter

Time:01-26

My project has several checkboxes, I would like to mark some as selected

[An example]

1

How do I tag a specific one?

I tried

self.checkButton[2].select()

self.checkButton['checkbox_2'].select()

self.checkButton.select(2)

but without success, how do I check a specific checkbox?

self.checkButton is my checkbox

self.checkButton = tkinter.Checkbutton(self.canvas, background="white", ...)

CodePudding user response:

Like @acw1668 and enter image description here

enter image description here

  •  Tags:  
  • Related