cleanup after an exteption in the postcreate code, added StaticText tests.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27082 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn 2004-05-03 23:06:48 +00:00
parent a24dc1a836
commit 98c092854c
2 changed files with 3 additions and 0 deletions

View File

@ -37,4 +37,6 @@
['wx', 'Slider', '-1, 20, 0, 100, style=wx.SL_VERTICAL|wx.SL_LABELS', ''],
['wx', 'Panel', 'size=(150,150)', ''],
['wx', 'StaticText', '-1, "normal"', ''],
['wx', 'StaticText', '-1, "New font"', 'f = wx.Font(18, wx.SWISS, wx.NORMAL, wx.BOLD)\nw.SetFont(f)\n'],
['wx', 'StaticText', '-1, "normal"', 'w.SetLabel("This is a longer label")'],
]

View 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