Python Function Returns Py_var1 Unexpectedly
I am expecting my button function to print a number (minutes_selected) based on the current value of the Spinner UI element, but the variable is always PY_VAR1: from tkinter import
You need to use the get
method to get the value of the variable.
Change this:
print(mintes_selected)
To this:
print(minutes_selected.get())
Post a Comment for "Python Function Returns Py_var1 Unexpectedly"