Re: [Pythonmac-SIG] Tkinter apps hang upon quitting

2008-07-23 Thread Kevin Walzer
Ronald Oussoren wrote: I don't know. Does Tkinter even work with Tcl/Tk 8.5? I don't use Tkinter myself, but I'm pretty sure I've seen some messages about problems with Tk 8.5 in the past. Those may have been resolved for Python 2.6. Yes, it works. I'm shipping a commercial application

[Pythonmac-SIG] PyObjC: debugging error-less crashes?

2008-07-23 Thread Daniel Ashbrook
I'm working my way through the excellent book "Cocoa Programming for Mac OS X", but using PyObjC instead of ObjC. For the most part it's working very well - a testament to the awesomeness of PyObjC! However, I'm occasionally getting a crash from my application that gives no errors - it just en

Re: [Pythonmac-SIG] PyObjC: debugging error-less crashes?

2008-07-23 Thread Gary Bernhardt
You need to wrap you alertEnded... method with PyObjcTools.Apphelper.endSheetMethod: @PyObjcTools.Apphelper.endSheetMethod def alertEnded(self, alert, choice, context): ... (Methods wrapped with endSheetMethod don't need the ObjC name mangling, so you can name it whatever you want.) I have a

Re: [Pythonmac-SIG] PyObjC: debugging error-less crashes?

2008-07-23 Thread Daniel Ashbrook
Ahh, that did it. Awesome, thanks. These occasional "add a decorator to avoid random crash" problems are very confusing... guess I'll figure it all out as I go along. dan Gary Bernhardt wrote: You need to wrap you alertEnded... method with PyObjcTools.Apphelper.endSheetMethod: @PyObjcTools

Re: [Pythonmac-SIG] PyObjC: debugging error-less crashes?

2008-07-23 Thread Ronald Oussoren
On 23 Jul, 2008, at 23:26, Gary Bernhardt wrote: You need to wrap you alertEnded... method with PyObjcTools.Apphelper.endSheetMethod: @PyObjcTools.Apphelper.endSheetMethod def alertEnded(self, alert, choice, context): ... (Methods wrapped with endSheetMethod don't need the ObjC name mangli