Gobs and gobs of changes, and tons of progress made. Can now create a wx.App, show a wx.Frame, run the MainLoop, bind event handlers and dispatch the events to the handler! YeeHa!

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@66393 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2010-12-17 08:08:24 +00:00
parent 044a2f2ed1
commit 212f1ff9f0
45 changed files with 1896 additions and 546 deletions

View File

@@ -123,6 +123,20 @@ class Events(unittest2.TestCase):
evt = wx.WindowDestroyEvent()
def test_eventBinding(self):
class Frame(wx.Frame):
def __init__(self, *args, **kw):
wx.Frame.__init__(self, *args, **kw)
self.Bind(wx.EVT_SIZE, self.onSize)
self.gotEvent = False
def onSize(self, evt):
self.gotEvent = True
evt.EventObject.Close()
app = wx.App()
frm = Frame(None)
frm.Show()
app.MainLoop()
self.assertTrue(frm.gotEvent)
#---------------------------------------------------------------------------