I have a checkbox on a GUI, using the following script:
# Define checkbox
CheckVar1 = IntVar()
C1 = Checkbutton(tab2, text = "NW", variable = CheckVar1, onvalue = 1, offvalue = 0)
# Place checkbox on GUI
C1.grid(column=0, row=4)
What command can I use to check the box, if a certain condition is met?
答案 0 :(得分:1)
Call the set
method of the associated varible:
CheckVar1.set(1)