Hi John, On Feb 6, 2008 6:15 AM, John Pye <[EMAIL PROTECTED]> wrote: > > I'm running my Python/PyGTK application on Windows. It all runs fine if > I run it through c:\Python25\python.exe. There's some output on the > console, and windows pop up and it all works fine. > > However when I run the same program with pythonw.exe > (c:\Python25\pythonw.exe) I get my initial splash-screen popping up, but > then nothing, and the program exits. I don't get any error messages on > the console though. > > Probably this is a programming error on my part. But it's rather hard to > find: what is the best way to debug this particular problem? Are there > any tricks I can use?
Several years ago Gustavo Carneiro posted a pygtk exception handler to this list, which displayed a nice pygtk error dialogue. I had modified it a few years back; and now put my version online. You can find more info at my weblog: http://slider.rack66.net/~mechanix/blog/c/software/python/gtkexcepthook.txt Just download and run the module as an application for demonstration. Please note; there are more modifications on the gtkexcepthook module Gustavo wrote. Do an online search to find these. > Any things that I should particularly look out > for? Are there any particular log files that pythonw keeps when it > exits, perhaps? Well, the above module will only be of any help if your code actually fails because it generates an exception. If not, I'm not sure how to figure out what's wrong. Maybe running from within a Windows Python IDE could provide more insight. KR, Filip -- Through the lens - http://photopassion.be/ _______________________________________________ pygtk mailing list [email protected] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
