summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNed Deily <nad@acm.org>2012-10-22 22:20:13 (GMT)
committerNed Deily <nad@acm.org>2012-10-22 22:20:13 (GMT)
commita212114a966c2c43de7f7f4404050018119c8dc0 (patch)
tree8fdbe68f250afb75241744d0ff98506e509bcc75
parent40d8078f418104e8558e72ca71484d8f3df088ce (diff)
parentb6d24d97467d2b4b74017c4812f7173f8021ece3 (diff)
downloadcpython-a212114a966c2c43de7f7f4404050018119c8dc0.zip
cpython-a212114a966c2c43de7f7f4404050018119c8dc0.tar.gz
cpython-a212114a966c2c43de7f7f4404050018119c8dc0.tar.bz2
Issue #15853: merge 3.3 -> default
-rw-r--r--Lib/idlelib/NEWS.txt3
-rw-r--r--Lib/idlelib/configDialog.py7
2 files changed, 6 insertions, 4 deletions
diff --git a/Lib/idlelib/NEWS.txt b/Lib/idlelib/NEWS.txt
index 12282b9..d193b0a 100644
--- a/Lib/idlelib/NEWS.txt
+++ b/Lib/idlelib/NEWS.txt
@@ -4,6 +4,9 @@ What's New in IDLE 3.4.0?
- Issue #16226: Fix IDLE Path Browser crash.
(Patch by Roger Serwy)
+- Issue #15853: Prevent IDLE crash on OS X when opening Preferences menu
+ with certain versions of Tk 8.5. Initial patch by Kevin Walzer.
+
What's New in IDLE 3.3.0?
=========================
diff --git a/Lib/idlelib/configDialog.py b/Lib/idlelib/configDialog.py
index 2701b42..434114e 100644
--- a/Lib/idlelib/configDialog.py
+++ b/Lib/idlelib/configDialog.py
@@ -821,10 +821,9 @@ class ConfigDialog(Toplevel):
fontWeight=tkFont.BOLD
else:
fontWeight=tkFont.NORMAL
- size=self.fontSize.get()
- self.editFont.config(size=size,
- weight=fontWeight,family=fontName)
- self.textHighlightSample.configure(font=(fontName, size, fontWeight))
+ newFont = (fontName, self.fontSize.get(), fontWeight)
+ self.labelFontSample.config(font=newFont)
+ self.textHighlightSample.configure(font=newFont)
def SetHighlightTarget(self):
if self.highlightTarget.get()=='Cursor': #bg not possible