Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions Lib/idlelib/configdialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -607,8 +607,9 @@ def load_font_cfg(self):
font_bold = configured_font[2]=='bold'

# Set editor font selection list and font_name.
fonts = list(tkFont.families(self))
fonts.sort()
fonts = tkFont.families(self)
# remove duplicated names and sort
fonts = sorted(set(fonts))
for font in fonts:
self.fontlist.insert(END, font)
self.font_name.set(font_name)
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
In the font configuration window, remove duplicated font names.