diff options
author | Ned Deily <nad@acm.org> | 2012-10-22 22:14:31 (GMT) |
---|---|---|
committer | Ned Deily <nad@acm.org> | 2012-10-22 22:14:31 (GMT) |
commit | fdf0f274e63ab45de33e81c016e97dc8640265e9 (patch) | |
tree | d4038a532520d9b4b6dfcd0779c0ba46b34da252 /Lib/idlelib/configDialog.py | |
parent | af38774b5f373935b772b3be7d07b4cae3760d63 (diff) | |
download | cpython-fdf0f274e63ab45de33e81c016e97dc8640265e9.zip cpython-fdf0f274e63ab45de33e81c016e97dc8640265e9.tar.gz cpython-fdf0f274e63ab45de33e81c016e97dc8640265e9.tar.bz2 |
Issue #15853: Prevent IDLE crash on OS X when opening Preferences menu
with certain versions of Tk 8.5. Initial patch by Kevin Walzer.
Diffstat (limited to 'Lib/idlelib/configDialog.py')
-rw-r--r-- | Lib/idlelib/configDialog.py | 7 |
1 files changed, 3 insertions, 4 deletions
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 |