[Pythonmac-SIG] wxPython -- some disappointment using it.

Charles Hartman charles.hartman at conncoll.edu
Wed Apr 12 15:39:04 CEST 2006


It occurs to me that if you added an OnExit() handler to your app --  
any app that's giving quit-too-soon trouble. The handler could simply  
put up a wx.MessageBox, which gets an OK from the user. This would  
pause the app on the way out, and therefore permit the normal app  
output window (without changing redirection) to stay onscreen as long  
as one liked. A little baroque, but pretty easy.

Charles Hartman


On Apr 12, 2006, at 9:28 AM, Louis Pecora wrote:

> 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
>
> _______________________________________________
> Pythonmac-SIG maillist  -  Pythonmac-SIG at python.org
> http://mail.python.org/mailman/listinfo/pythonmac-sig



More information about the Pythonmac-SIG mailing list