]> granicus.if.org Git - python/commitdiff
Issue #15853: Prevent IDLE crash on OS X when opening Preferences menu
authorNed Deily <nad@acm.org>
Mon, 22 Oct 2012 22:14:31 +0000 (15:14 -0700)
committerNed Deily <nad@acm.org>
Mon, 22 Oct 2012 22:14:31 +0000 (15:14 -0700)
with certain versions of Tk 8.5.  Initial patch by Kevin Walzer.

Lib/idlelib/NEWS.txt
Lib/idlelib/configDialog.py

index 3160c74561d0aafe68482c4a577fa8d61ed96288..f234b64b853b7995389f84c919d290083c981edf 100644 (file)
@@ -21,6 +21,9 @@ What's New in IDLE 3.2.4?
 - Issue #14018: Update checks for unstable system Tcl/Tk versions on OS X
   to include versions shipped with OS X 10.7 and 10.8 in addition to 10.6.
 
+- 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.2.3?
 =========================
index 2701b42f43d54fb2c91e6cbca8694d089918692e..434114e4d2a990219b89743612b60d405865f386 100644 (file)
@@ -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