Message229278
| Author |
terry.reedy |
| Recipients |
Saimadhav.Heblikar, terry.reedy |
| Date |
2014年10月14日.03:33:48 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1413257630.76.0.367621064016.issue22629@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
After using idle-test/htest.py and individual htests when editing files, a few updates are needed.
1. Improve the docstring for htest.py; add info about "# htest #" and #2 below.
2. Use Toplevel(parent) instead of Tk() for test-specific childs windows of the main, master window. Currently, for some tests, such as CallTipWindow, the focus does not properly shift to the test window. Closing the master window first leaves the test window open. Closing the test window second then causes several tcl errors (printed to console if available), a Windows message, and an Idle freeze of 5 seconds or more before Idle works again. The change in this initial patch fixes the focus, non-close, error, and hang problems. One click and the test window is ready to go; one click on the master and both go away.
3. Coding style issues -- I prefer to use winfo_rootx/y, as done elsewhere in Idle, to using re (close call). For CallTipWindow, the inner class is not needed now, if it ever was. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2014年10月14日 03:33:51 | terry.reedy | set | recipients:
+ terry.reedy, Saimadhav.Heblikar |
| 2014年10月14日 03:33:50 | terry.reedy | set | messageid: <1413257630.76.0.367621064016.issue22629@psf.upfronthosting.co.za> |
| 2014年10月14日 03:33:50 | terry.reedy | link | issue22629 messages |
| 2014年10月14日 03:33:50 | terry.reedy | create |
|