Dan OD <[EMAIL PROTECTED]> added the comment: Please forgive my rookie bug filing:
I'm getting this bug / crash sometimes when Menu.delete() is called too It seems to be because self.index( ) sometimes returns None which is of course un-iterable and delete() tries to iterate through it: for i in range(self.index(index1), self.index(index2)+1): As a fix the previous (simpler) delete works for me, but I don't understand the purpose of the extra self.deletecommand() code appended so I'm probably missing something. My crash: File "C:\CCPN\ccpn\python\memops\gui\Menu.py", line 127, in deleteMenuItems self.delete(0, Tkinter.END) File "C:\Python26\lib\lib-tk\Tkinter.py", line 2665, in delete for i in range(self.index(index1), self.index(index2)+1): TypeError: unsupported operand type(s) for +: 'NoneType' and 'int' ---------- nosy: +indiedan _______________________________________ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue3774> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com