]> granicus.if.org Git - python/commit
[3.6] bpo-30993: IDLE - Improve configdialog font page and tests. (GH-2831) (#2834)
authorTerry Jan Reedy <tjreedy@udel.edu>
Mon, 24 Jul 2017 06:50:28 +0000 (02:50 -0400)
committerGitHub <noreply@github.com>
Mon, 24 Jul 2017 06:50:28 +0000 (02:50 -0400)
commit1daeb259799d0664c9453a3bd8e80411e65b52c9
tree8b0a750deb7d8019fee31cd8976f6aa05533de7f
parentf76d1a0819899c4aa6fd3fa5834c7677faa01b12
[3.6] bpo-30993: IDLE - Improve configdialog font page and tests. (GH-2831) (#2834)

In configdialog: Document causal pathways in create_font_tab docstring.  Simplify some attribute names. Move set_samples calls to var_changed_font (idea from Cheryl Sabella).  Move related functions to positions after the create widgets function.

In test_configdialog: Fix test_font_set so not order dependent.  Fix renamed test_indent_scale so it tests the widget.  Adjust tests for movement of set_samples call.  Add tests for load functions.  Put all font tests in one class and tab indent tests in another.  Except for two lines, these tests completely cover the related functions.
(cherry picked from commit 77e97ca)
Lib/idlelib/configdialog.py
Lib/idlelib/idle_test/test_configdialog.py
Misc/NEWS.d/next/IDLE/2017-07-22-18-08-41.bpo-30993.34vJkB.rst