Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit fdf0f27

Browse files
committed
Issue #15853: Prevent IDLE crash on OS X when opening Preferences menu
with certain versions of Tk 8.5. Initial patch by Kevin Walzer.
1 parent af38774 commit fdf0f27

2 files changed

Lines changed: 6 additions & 4 deletions

File tree

Lib/idlelib/NEWS.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ What's New in IDLE 3.2.4?
2121
- Issue #14018: Update checks for unstable system Tcl/Tk versions on OS X
2222
to include versions shipped with OS X 10.7 and 10.8 in addition to 10.6.
2323

24+
- Issue #15853: Prevent IDLE crash on OS X when opening Preferences menu
25+
with certain versions of Tk 8.5. Initial patch by Kevin Walzer.
26+
2427

2528
What's New in IDLE 3.2.3?
2629
=========================

Lib/idlelib/configDialog.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -821,10 +821,9 @@ def SetFontSample(self,event=None):
821821
fontWeight=tkFont.BOLD
822822
else:
823823
fontWeight=tkFont.NORMAL
824-
size=self.fontSize.get()
825-
self.editFont.config(size=size,
826-
weight=fontWeight,family=fontName)
827-
self.textHighlightSample.configure(font=(fontName, size, fontWeight))
824+
newFont = (fontName, self.fontSize.get(), fontWeight)
825+
self.labelFontSample.config(font=newFont)
826+
self.textHighlightSample.configure(font=newFont)
828827

829828
def SetHighlightTarget(self):
830829
if self.highlightTarget.get()=='Cursor': #bg not possible

0 commit comments

Comments
 (0)