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