Skip to content

expected floating-point number but got "PY_VAR4" #2

@jackyohh

Description

@jackyohh

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions