]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/demo/IntCtrl.py
Change event names to clarify that they are only fired by button clicks, and note...
[wxWidgets.git] / wxPython / demo / IntCtrl.py
index 1b56843e75a578b210d37d3991cea2e690d86a03..d80bedb41870b52a134d871a8ec4bf0c853ce309 100644 (file)
@@ -47,7 +47,7 @@ class TestPanel( wx.Panel ):
         grid.Add( self.target_ctl, 0, wx.ALIGN_LEFT|wx.ALL, 5 )
 
         outer_box = wx.BoxSizer( wx.VERTICAL )
-        outer_box.AddSizer( grid, 0, wx.ALIGN_CENTRE|wx.ALL, 20 )
+        outer_box.Add( grid, 0, wx.ALIGN_CENTRE|wx.ALL, 20 )
 
         panel.SetAutoLayout( True )
         panel.SetSizer( outer_box )
@@ -339,4 +339,4 @@ it will either be adjusted or colored as appropriate.
 if __name__ == '__main__':
     import sys,os
     import run
-    run.main(['', os.path.basename(sys.argv[0])])
+    run.main(['', os.path.basename(sys.argv[0])] + sys.argv[1:])