_tkinter.TclError: expected integer but got "%#"
Moosems opened this issue · 1 comments
Moosems commented
root = Tk()
root.register_drop_target("*")
root.bind("<<Drop>>", print)
root.mainloop()
After dragging a file onto the window, I got this:
Exception in Tkinter callback
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/tkinter/__init__.py", line 1947, in __call__
args = self.subst(*args)
^^^^^^^^^^^^^^^^^
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/tkinter/__init__.py", line 1632, in _substitute
e.serial = getint(nsign)
^^^^^^^^^^^^^
_tkinter.TclError: expected integer but got "%#"