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())

Leave a Comment