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 <rep...@bugs.python.org>
<http://bugs.python.org/issue15853>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to