From bca8d2f78420687ea6ec2ff69d459b3ee195b1e4 Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Sun, 25 Sep 2011 04:24:41 +0000 Subject: [PATCH] A little cleanup and tweaking git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@69195 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- build.py | 2 +- samples/simple/events.py | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/build.py b/build.py index 7f5e2ef0..83ad5292 100755 --- a/build.py +++ b/build.py @@ -632,7 +632,7 @@ def build_py(options, args): #command = PYTHON + " -u " + os.path.join(phoenixDir(), "distrib", "makemo.py") #runcmd(command) - print "------------ BUILD FINISHED ------------" + print "\n------------ BUILD FINISHED ------------" print "To run the wxPython demo:" print " - Set your PYTHONPATH variable to %s." % phoenixDir() if not isWindows and not options.install: diff --git a/samples/simple/events.py b/samples/simple/events.py index 1874b5e6..338a1b01 100644 --- a/samples/simple/events.py +++ b/samples/simple/events.py @@ -8,8 +8,10 @@ class MyFrame(wx.Frame): wx.Frame.__init__(self, *args, **kw) self.Bind(wx.EVT_SIZE, self.onSize) wx.CallAfter(self.after, 1, 2, 3) + def after(self, a, b, c): print 'Called via wx.CallAfter:', a, b, c + def onSize(self, evt): print repr(evt.Size) evt.Skip() @@ -20,6 +22,7 @@ class MyApp(wx.App): frm = MyFrame(None, title="Hello with Events", size=(480,360)) frm.Show() return True + def OnExit(self): print 'OnExit' return 0