New submission from Terry J. Reedy:

#18104 created idle_test/htest.py. Besides adding more tests in other issues, 
some possible improvements to htest itself follow. Many depend on not reusing 
run, as it now it, in the runall loop. What is left in common to both might be 
factored out.

* For runall, reuse the same master box so the user does not have to click away 
each master box to see another (which also appears in a different position). 
Instead, rewrite the message and if still used, the button.

* Make sure tested widgets do not cover the master box. For 
configSectionNameDialog, an htest parameter was added to the class to change 
the usual positioning (which was intentionally centered over the parent).

* For most tests, eliminate the button and simply display the widget. The 
button is needed for testing message boxes when one wants to test different 
entries (the section name dialog). 'button=True' could be added to the spec 
where needed.

* If there is no button to restart a test, then closing the widget should, if 
possible, close the master. The editor window does this, but that would have to 
be changed if runall ran in one root.

* The pre-existing editor window test hides (withdraws) the master (root) 
window. This is not necessary and should be changed.

----------
messages: 218312
nosy: sahutd, terry.reedy
priority: normal
severity: normal
status: open
title: Idle: improve idle_test,htest

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue21477>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to