[issue1342811] Tkinter.Menu.delete doesn't delete command of entry

Guilherme Polo report at bugs.python.org
Sun Aug 17 00:04:06 CEST 2008


Guilherme Polo <ggpolo at gmail.com> added the comment:

Uhm, this patch can cause trouble if not adapted a bit. The index method
may return None for either index1 or index2, which will cause a
TypeError in that for loop.

If code is needed to confirm this, try the following:
menu = Tkinter.Menu(tearoff=False)
menu.delete(0)

----------
nosy: +gpolo
resolution: fixed -> 
status: closed -> open

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue1342811>
_______________________________________


More information about the Python-bugs-list mailing list