diff options
author | Terry Jan Reedy <tjreedy@udel.edu> | 2023-10-19 04:03:24 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-19 04:03:24 (GMT) |
commit | 642eb8df951f2f1d4bf4d93ee568707c5bf40a96 (patch) | |
tree | f7eb9ca809520c3edbd64a1f23a2b963206d22d6 /Lib/idlelib/idle_test | |
parent | 19916941172844f9c52d7a6dce95efaa23035772 (diff) | |
download | cpython-642eb8df951f2f1d4bf4d93ee568707c5bf40a96.zip cpython-642eb8df951f2f1d4bf4d93ee568707c5bf40a96.tar.gz cpython-642eb8df951f2f1d4bf4d93ee568707c5bf40a96.tar.bz2 |
gh-111050: IDLE - Simplify configdialog.HighPage.theme_elements (#111053)
Replace tuple value with internal name, removing numbers.
Remove sorting of already ordered dislay names.
Remove '[0]' indexing into now-gone tuple.
Diffstat (limited to 'Lib/idlelib/idle_test')
-rw-r--r-- | Lib/idlelib/idle_test/test_configdialog.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/idlelib/idle_test/test_configdialog.py b/Lib/idlelib/idle_test/test_configdialog.py index e5d5b40..6f8518a 100644 --- a/Lib/idlelib/idle_test/test_configdialog.py +++ b/Lib/idlelib/idle_test/test_configdialog.py @@ -430,7 +430,7 @@ class HighPageTest(unittest.TestCase): def tag_to_element(elem): for element, tag in d.theme_elements.items(): - elem[tag[0]] = element + elem[tag] = element def click_it(start): x, y, dx, dy = hs.bbox(start) |