X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3c29a62abbf238f3df5f014f83a6a8a47a6f07ac..05e00ac5ef410707da86d98786cbb268100a7337:/wxPython/demo/IntCtrl.py diff --git a/wxPython/demo/IntCtrl.py b/wxPython/demo/IntCtrl.py index 16b5610eb5..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 )