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.
This commit is contained in:
Terry Jan Reedy 2023-10-19 00:03:24 -04:00 committed by GitHub
parent 1991694117
commit 642eb8df95
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 22 additions and 24 deletions

View file

@ -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)