]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/misc/widgetLayoutTest.py
cleanup after an exteption in the postcreate code, added StaticText tests.
[wxWidgets.git] / wxPython / misc / widgetLayoutTest.py
index b2bea7a79154be99b64d181c1775b070eaf30e8c..ebe741b6c29bb2436beafb7da3276549fd753257 100644 (file)
@@ -295,6 +295,7 @@ class LayoutTestFrame(wx.Frame):
                 wx.MessageBox("Got a '%s' Exception!" % e.__class__.__name__, "Error")
                 import traceback
                 traceback.print_exc()
+                w.Destroy()
                 return
             
         # Put the widget in a sizer and the sizer in the testPanel