X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/95bfd958bda8955ac81277c78e5627c926154f39..414dfb5804fc568b26fec3f8a8ecc2f25addedfd:/wxPython/demo/IntCtrl.py diff --git a/wxPython/demo/IntCtrl.py b/wxPython/demo/IntCtrl.py index 1b56843e75..d80bedb418 100644 --- a/wxPython/demo/IntCtrl.py +++ b/wxPython/demo/IntCtrl.py @@ -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:])