Python Tkinter: AttributeError: Checkbutton instance has no attribute 'get' Python Tkinter: AttributeError: Checkbutton instance has no attribute 'get' tkinter tkinter

Python Tkinter: AttributeError: Checkbutton instance has no attribute 'get'


To find the state of the Checkbutton use the fuzzyspellingvariable that you've attached to the Checkbutton:

fuzzyspellingvariable.get()

By the way, since the checkbutton only has two states, you could use a BooleanVar instead of an IntVar here:

fuzzyspellingvariable = BooleanVar()


Ah, I got it. You need to perform the .get() method on the variable, not the button:

print fuzzyspellingvariable.get()print lemmatizedsearchvariable.get()