Kevin O's demo modules fixup patch
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24778 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -15,12 +15,12 @@ class TestPanel(wx.Panel):
|
||||
self.log = log
|
||||
|
||||
b = wx.Button(self, 10, "Default Button", (20, 20))
|
||||
self.Bind(EVT_BUTTON, self.OnClick, b)
|
||||
self.Bind(wx.EVT_BUTTON, self.OnClick, b)
|
||||
b.SetDefault()
|
||||
b.SetSize(b.GetBestSize())
|
||||
|
||||
b = wx.Button(self, 20, "HELLO AGAIN!", (20, 80), (120, 45))
|
||||
self.Bind(EVT_BUTTON, self.OnClick, b)
|
||||
self.Bind(wx.EVT_BUTTON, self.OnClick, b)
|
||||
b.SetToolTipString("This is a Hello button...")
|
||||
|
||||
if 0: # a test case for catching wx.PyAssertionError
|
||||
|
Reference in New Issue
Block a user