[issue15853] IDLE crashes selecting Preferences menu with OS X ActiveState Tcl/Tk 8.5.12.1

Roger Serwy report at bugs.python.org
Fri Oct 12 17:42:18 CEST 2012


Roger Serwy added the comment:

It appears that Kevin's patch is working around a bug in Tkinter's tkFont object configuration. I would suggest removing the editFont object entirely from configDialog if it is truly the root cause of Tk crashing.

Kevin, is the .textHighlightSample causing the crash or is the editFont.config line causing the crash?

Setting the font in the Fonts/Tab pane should also change the font in the Highlighting pane. This is part of issue14876. Would the following still work on your version of IDLE?

    newFont = (fontName, self.fontSize.get(), fontWeight)
    self.labelFontSample.config(font = newFont)
    self.textHighlightSample.configure(font=newFont)

Also, since this is a problem with Tk itself, can the crashing behavior be isolated into a small test script? I don't have a Mac to test with.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue15853>
_______________________________________


More information about the Python-bugs-list mailing list