Bagaimana saya bisa mendapatkan status Checkbutton
dengan python? Aku punya ini:
def doSomething():
if #code goes here, if checkbutton is selected
...
check = Checkbutton(window, text="Add both", onvalue = 1, offvalue = 0)
check.pack(side="right")