[issue3774] tkinter Menu.delete bug
Dan OD
report at bugs.python.org
Tue Sep 16 14:25:52 CEST 2008
Dan OD <djo35 at cam.ac.uk> added the comment:
It may be because I'm calling delete incorrectly (I don't think so - see
below) but I'm getting an error
File "C:\CCPN\ccpn\python\memops\gui\Menu.py", line 127, in
deleteMenuItems
self.delete(0, Tkinter.END)
File "C:\Python-2.6_svn\lib\lib-tk\Tkinter.py", line 2670, in delete
if c in self._tclCommands:
TypeError: argument of type 'NoneType' is not iterable
Which can easily be fixed with
- if c in self._tclCommands:
+ if c and c in self._tclCommands:
line 2670 Tkinter.py
Should I create a patch or have I missed something? Thanks.
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue3774>
_______________________________________
More information about the Python-bugs-list
mailing list