Uncommented CallAfter() and test it

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@66464 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2010-12-27 18:58:39 +00:00
parent 0dbb56bbb5
commit 68542755de
3 changed files with 64 additions and 29 deletions

View File

@@ -127,15 +127,16 @@ class Events(unittest2.TestCase):
class Frame(wx.Frame):
def __init__(self, *args, **kw):
wx.Frame.__init__(self, *args, **kw)
self.Bind(wx.EVT_SIZE, self.onSize)
self.Bind(wx.EVT_SIZE, self.OnSize)
self.gotEvent = False
def onSize(self, evt):
def OnSize(self, evt):
self.gotEvent = True
evt.EventObject.Close()
app = wx.App()
frm = Frame(None)
frm.Show()
app.MainLoop()
frm.SetSize((200,100))
#app.MainLoop()
self.assertTrue(frm.gotEvent)