[Pythonmac-SIG] wxPython -- some disappointment using it.
Louis Pecora
pecora at anvil.nrl.navy.mil
Wed Apr 12 15:28:27 CEST 2006
Kevin Ollivier wrote:
> Hi Louis,
>
> On Apr 11, 2006, at 2:43 PM, Louis Pecora wrote:
>
>> I bought the wxPython in Action book and started trying the simple
>> examples in Chap. 1. One thing I have run into is rather
>> disappointing. Many errors (e.g. I typed return true, instead of return
>> True) do not give the beloved Python tracback. That's one of the nice
>> things that made me choose Python. Somehow once the app is launched if
>> there is a bug it just quits without any information. I am now
>> struggling to find out why example 3 (hello.py) won't work. I've been
>> over it dozens of times checking indentation, spelling, etc. But the
>> app never gets into OnInit (determined by the old fashion way of putting
>> print's into the program at strategic stages). A window flashes open
>> and then disappears. Process exited in the terminal.
>
> Have you checked if there's anything in
> /Applications/Utilities/Console.app? If you run scripts by
> double-clicking them in the Finder, that's where the output should be
> going.
>
> Regards,
>
> Kevin
>
I'm running from BBEdit. Someone else pointed me to the link that
showed how to do a redirect output. When I did that I got the
traceback. I wish there were a way to keep the popup window with the
traceback info open, but it quickly closes and the app quits.
Redirecting found the error, but it is an extra step.
--
Cheers,
Lou Pecora
Code 6362
Naval Research Lab
Washington, DC 20375
USA
Ph: +202-767-6002
email: pecora at anvil.nrl.navy.mil
More information about the Pythonmac-SIG
mailing list