1 Jul 2010 16:30
Re: How to capture exceptions after the end of the program
Vasilis Vlachoudis <Vasilis.Vlachoudis <at> cern.ch>
2010-07-01 14:30:25 GMT
2010-07-01 14:30:25 GMT
Unfortunately I was not able to narrow down to a simple code. All my attempts failed and they worked ok. While in the big project is not behaving correctly. The problem I see depends on the gc. If the gc deletes first the Tk_ root window then when it tries to delete the Font.__del__, tcl fails. Which for me is a bit puzzling since there is a backlink of the root in the Font class. However I saw that from python 2.6 the tkFont.Font.__del__ method has changed with respect to the 2.4 and there is a branch to catch the generic exception. When I added this to the tkFont of the 2.4 it worked and absorbed all Exceptions. Vasilis On 06/25/10 22:39, Michael Lange wrote: > Hi Vasilis, > > On Fri, 25 Jun 2010 12:20:30 +0200 > Vasilis Vlachoudis<Vasilis.Vlachoudis <at> cern.ch> wrote: > > >> Hi all, >> >> I have a tkinter application that uses several fonts. However only >> with python 2.4 when the application is closed then I get the >> following exceptions (with 2.6 it works Ok) >>(Continue reading)
RSS Feed