Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork33.3k
Closed
Description
Bug report
One effect ofTIP 577 is that as of Tk 8.7, theindex command for menus will now return an empty string instead ofnone, leading to an error intkinter.Menu.index():
>>> m.index('none')Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/Users/user/git/cpython/Lib/tkinter/__init__.py", line 3434, in index return self.tk.getint(i) ^^^^^^^^^^^^^^^^^_tkinter.TclError: expected integer but got ""It should be easy to accommodate both the new and old behavior.