【发布时间】:2013-05-22 14:52:50
【问题描述】:
如何在 python 中获取Checkbutton 的状态?我有这个:
def doSomething():
if #code goes here, if checkbutton is selected
...
check = Checkbutton(window, text="Add both", onvalue = 1, offvalue = 0)
check.pack(side="right")
【问题讨论】: