Tkinter IntVar returning PY_VAR0 instead of value Tkinter IntVar returning PY_VAR0 instead of value tkinter tkinter

Tkinter IntVar returning PY_VAR0 instead of value


var is a reference to a Tkinter.IntVar object. You need to call its get method to access the value that it represents:

print(var.get())