[Pythonmac-SIG] wxPython -- some disappointment using it.
Charles Hartman
charles.hartman at conncoll.edu
Wed Apr 12 02:03:25 CEST 2006
If I recall correctly, this syndrome is covered in the book. It
happens because the diagnostic's going to a window that closes when
the app does. Look up wx.App(redirect=True) in the index -- you can
write the diagnostic to a file and examine it at leisure. Sorry, I'm
doing this from memory so the details are hazy.
Charles Hartman
On Apr 11, 2006, at 5: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.
>
> How are others using wxPython? Do you find you need to run in a
> debugger? Does that help? What do you recommend?
>
> Thanks for any suggestions.
>
> --
> Cheers,
>
> Lou Pecora
>
> Code 6362
> Naval Research Lab
> Washington, DC 20375
> USA
> Ph: +202-767-6002
> email: pecora at anvil.nrl.navy.mil
>
> _______________________________________________
> Pythonmac-SIG maillist - Pythonmac-SIG at python.org
> http://mail.python.org/mailman/listinfo/pythonmac-sig
More information about the Pythonmac-SIG
mailing list