summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib/configdialog.py
diff options
context:
space:
mode:
authorTerry Jan Reedy <tjreedy@udel.edu>2020-02-11 01:08:58 (GMT)
committerGitHub <noreply@github.com>2020-02-11 01:08:58 (GMT)
commit96ce22706735779cf8cc46eaaa5ac61359364b5a (patch)
treee54a0386757f346642d4dc358dd583b6040fb4c7 /Lib/idlelib/configdialog.py
parent038770edc4680e9a3dc39bacb35a8358034fb901 (diff)
downloadcpython-96ce22706735779cf8cc46eaaa5ac61359364b5a.zip
cpython-96ce22706735779cf8cc46eaaa5ac61359364b5a.tar.gz
cpython-96ce22706735779cf8cc46eaaa5ac61359364b5a.tar.bz2
bpo-39600: Adjust code, add idlelib/NEWS item (GH-18449)
Complete previous patch.
Diffstat (limited to 'Lib/idlelib/configdialog.py')
-rw-r--r--Lib/idlelib/configdialog.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/Lib/idlelib/configdialog.py b/Lib/idlelib/configdialog.py
index 7b844f0..9d5c2cd 100644
--- a/Lib/idlelib/configdialog.py
+++ b/Lib/idlelib/configdialog.py
@@ -606,10 +606,8 @@ class FontPage(Frame):
font_size = configured_font[1]
font_bold = configured_font[2]=='bold'
- # Set editor font selection list and font_name.
- fonts = tkFont.families(self)
- # remove duplicated names and sort
- fonts = sorted(set(fonts))
+ # Set sorted no-duplicate editor font selection list and font_name.
+ fonts = sorted(set(tkFont.families(self)))
for font in fonts:
self.fontlist.insert(END, font)
self.font_name.set(font_name)