mirror of
https://github.com/python/cpython.git
synced 2025-11-25 12:44:13 +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
3dd8cbea9b
commit
e3d47128c5
2 changed files with 6 additions and 4 deletions
|
|
@ -832,10 +832,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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue