[issue31284] IDLE: Fix WindowList invalid command name error when running tests

2017-08-27 Thread Cheryl Sabella
Cheryl Sabella added the comment: Thank you for taking the time to research and explain that. It's funny, but on my code example, I got it to happen every time and you said it didn't happen unless you made the change to use root.update() and root.destroy(). I tried it out again and realized t

[issue31284] IDLE: Fix WindowList invalid command name error when running tests

2017-08-26 Thread Terry J. Reedy
Terry J. Reedy added the comment: As you gave the code, the two windows just sit there with mainloop running. Replace it with root.update() #w.close() root.destroy() and run from IDLE editor and I see the ".!menu.windows" message. Uncomment the close and it goes away. Root.destroy recursivel

[issue31284] IDLE: Fix WindowList invalid command name error when running tests

2017-08-26 Thread Cheryl Sabella
Cheryl Sabella added the comment: I saw it on my PR for the tests in outwin (issue30617) and I also found a comment from someone else in test_paragraph.py about it. I can reproduce it with this code: from idlelib import outwin from tkinter import Tk, Text root = Tk() w = outwin.OutputWindow(No

[issue31284] IDLE: Fix WindowList invalid command name error when running tests

2017-08-26 Thread Terry J. Reedy
Terry J. Reedy added the comment: I don't remember ever seeing that message. Do you have code that reliably reproduces the problem? def postwindowsmenu(self): # Only called when Windows menu exists menu = self.menudict['windows'] end = menu.index("end") ...

[issue31284] IDLE: Fix WindowList invalid command name error when running tests

2017-08-26 Thread Cheryl Sabella
Changes by Cheryl Sabella : -- pull_requests: +3250 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue31284] IDLE: Fix WindowList invalid command name error when running tests

2017-08-26 Thread Cheryl Sabella
New submission from Cheryl Sabella: When running tests that use an EditorWindow, the following warning message occurs: warning: callback failed in WindowList : invalid command name ".!menu.windows" This warning comes from `call_callbacks` in WindowsList in windows.py when the callback is `p