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:
@@ -37,4 +37,6 @@
|
|||||||
['wx', 'Slider', '-1, 20, 0, 100, style=wx.SL_VERTICAL|wx.SL_LABELS', ''],
|
['wx', 'Slider', '-1, 20, 0, 100, style=wx.SL_VERTICAL|wx.SL_LABELS', ''],
|
||||||
['wx', 'Panel', 'size=(150,150)', ''],
|
['wx', 'Panel', 'size=(150,150)', ''],
|
||||||
['wx', 'StaticText', '-1, "normal"', ''],
|
['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")'],
|
||||||
]
|
]
|
||||||
|
@@ -295,6 +295,7 @@ class LayoutTestFrame(wx.Frame):
|
|||||||
wx.MessageBox("Got a '%s' Exception!" % e.__class__.__name__, "Error")
|
wx.MessageBox("Got a '%s' Exception!" % e.__class__.__name__, "Error")
|
||||||
import traceback
|
import traceback
|
||||||
traceback.print_exc()
|
traceback.print_exc()
|
||||||
|
w.Destroy()
|
||||||
return
|
return
|
||||||
|
|
||||||
# Put the widget in a sizer and the sizer in the testPanel
|
# Put the widget in a sizer and the sizer in the testPanel
|
||||||
|
Reference in New Issue
Block a user