![]() | Ned Batchelder : Blog | Code | Text | Site Error handling in wxPython » Home : Blog : March 2003 |
Error handling in wxPythonMonday 24 March 2003 I wrote my first useful wxPython application over the weekend, and here's my number one helpful tip for those of you out there who are trying to get started with wxPython. Maybe there's something about my installation that isn't right, but when there was an error in my code, I saw a little stderr window pop up, and then disappear before I could read what it said. Very frustrating. Here's what I finally figured out to fix it. Instead of the usual main loop: app = MyApp() Use this instead: try: Now errors in executing the main loop will be displayed in a message box, where (imagine this) you can read them!
tagged:
python,
exceptions» react | |
Comments
Add a comment: