mirror of
https://github.com/python/cpython.git
synced 2025-09-01 22:47:59 +00:00
Issue #15853: Prevent IDLE crash on OS X when opening Preferences menu
with certain versions of Tk 8.5. Initial patch by Kevin Walzer.
This commit is contained in:
parent
af38774b5f
commit
fdf0f274e6
2 changed files with 6 additions and 4 deletions
|
@ -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
|
- 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.
|
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?
|
What's New in IDLE 3.2.3?
|
||||||
=========================
|
=========================
|
||||||
|
|
|
@ -821,10 +821,9 @@ class ConfigDialog(Toplevel):
|
||||||
fontWeight=tkFont.BOLD
|
fontWeight=tkFont.BOLD
|
||||||
else:
|
else:
|
||||||
fontWeight=tkFont.NORMAL
|
fontWeight=tkFont.NORMAL
|
||||||
size=self.fontSize.get()
|
newFont = (fontName, self.fontSize.get(), fontWeight)
|
||||||
self.editFont.config(size=size,
|
self.labelFontSample.config(font=newFont)
|
||||||
weight=fontWeight,family=fontName)
|
self.textHighlightSample.configure(font=newFont)
|
||||||
self.textHighlightSample.configure(font=(fontName, size, fontWeight))
|
|
||||||
|
|
||||||
def SetHighlightTarget(self):
|
def SetHighlightTarget(self):
|
||||||
if self.highlightTarget.get()=='Cursor': #bg not possible
|
if self.highlightTarget.get()=='Cursor': #bg not possible
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue