X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/299647acac7960652aadb008775429c1f8ea9b8d..30e24d9dd5a5abf1c9a375ea259eb239b122b7f7:/wxPython/demo/IntCtrl.py diff --git a/wxPython/demo/IntCtrl.py b/wxPython/demo/IntCtrl.py index 27b968c5a2..d80bedb418 100644 --- a/wxPython/demo/IntCtrl.py +++ b/wxPython/demo/IntCtrl.py @@ -1,20 +1,3 @@ -# 11/19/2003 - Jeff Grimmett (grimmtooth@softhome.net) -# -# o Updated for wx namespace -# -# 11/29/2003 - Jeff Grimmett (grimmtooth@softhome.net) -# -# o intctrl needs the renamer applied. -# o intctrl needs new event binders. -# -# 12/08/2003 - Jeff Grimmett (grimmtooth@softhome.net) -# -# o All issues corrected -# -# 12/20/2003 - Jeff Grimmett (grimmtooth@softhome.net) -# -# o wxIntCtrl -> IntCtrl -# import wx import wx.lib.intctrl @@ -64,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 ) @@ -356,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:])