-
Notifications
You must be signed in to change notification settings - Fork 3
expected floating-point number but got "PY_VAR4" #2
Copy link
Copy link
Open
Description
I got this error in Tkinter-Bootstrap-Guide/blob/main/example_2.py.
line ???, in on_submit
final_score = self.final_score.get()
^^^^^^^^^^^^^^^^^^^^^^
File "C:\Python311\Lib\tkinter\__init__.py", line 615, in get
return self._tk.getdouble(self._tk.globalgetvar(self._name))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
_tkinter.TclError: expected floating-point number but got "PY_VAR4"
get() method is missing. This should fix it.
self.final_score.set(meter.amountusedvar.get())
Greetings and thx for your work!
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels