bpo-39600, IDLE: Remove duplicated font names (GH-18430)
In the font configuration window, remove duplicated font names.
(cherry picked from commit ed335cf53b
)
Co-authored-by: Victor Stinner <vstinner@python.org>
This commit is contained in:
parent
a83d910806
commit
021a5694ed
|
@ -607,8 +607,9 @@ class FontPage(Frame):
|
|||
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)
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
In the font configuration window, remove duplicated font names.
|
Loading…
Reference in New Issue