Post thumbnail of How to debug wxPython errors when your applications crash
20 October 2009
Continue reading How to debug wxPython errors when your applications crash

How to debug wxPython errors when your applications crash

After your done building your wx objects and you’re ready to show it and call MainLoop(), wrap your main loop where you actually instantiate your gui objects in try/accept statements so that you can really catch any errors by calling the “show_errors()” function to launch a new message window where the errors will get displayed. This lets you catch errors before your whole program dies (causing errors to get lost).

Post thumbnail of wxPython calculator example skeleton code
17 October 2009
Continue reading wxPython calculator example skeleton code

wxPython calculator example skeleton code

I didn’t find a glade template for this one, but I’m starting to lean away from using a gui builder. It seems more trouble than it’s worth.

Post thumbnail of Focusing on the hard parts of wxPython - layout and events
17 October 2009
Continue reading Focusing on the hard parts of wxPython - layout and events

Focusing on the hard parts of wxPython - layout and events

I like wxPython a lot more than the other gui tooltkits i’ve tried. I’m finding it really easy to keep it from getting cluttered, and it’s easy to pick up and run with, but there’s some demo’s like this one below, that i’ve seen in various forms all over the place now, that I think are a waste of time. Why would you have a app that has nothing but a menu bar? You wouldn’t, so doesn’t it make sense to get the confusing parts of gui code out of the way? Namely, layout and events.

Powered by Wordpress   |   Lunated designed by ZenVerse