Message172753
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. |
|
Date |
User |
Action |
Args |
2012-10-12 15:42:18 | roger.serwy | set | recipients:
+ roger.serwy, rhettinger, wordtech, christian.heimes, ned.deily, r.david.murray, David.Pietz |
2012-10-12 15:42:18 | roger.serwy | set | messageid: <1350056538.52.0.0941929617087.issue15853@psf.upfronthosting.co.za> |
2012-10-12 15:42:18 | roger.serwy | link | issue15853 messages |
2012-10-12 15:42:18 | roger.serwy | create | |
|