Skip to content

Commit b6d24d9

Browse files
committed
Issue #15853: merge 3.2 -> 3.3
2 parents abb0feb + fdf0f27 commit b6d24d9

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

Lib/idlelib/NEWS.txt

+3
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ What's New in IDLE 3.3.1?
44
- Issue #16226: Fix IDLE Path Browser crash.
55
(Patch by Roger Serwy)
66

7+
- Issue #15853: Prevent IDLE crash on OS X when opening Preferences menu
8+
with certain versions of Tk 8.5. Initial patch by Kevin Walzer.
9+
710

811
What's New in IDLE 3.3.0?
912
=========================

Lib/idlelib/configDialog.py

+3-4
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)