X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/95bfd958bda8955ac81277c78e5627c926154f39..d95527de9ac48fa54207ebf698286f92e909faaf:/wxPython/demo/Grid.py diff --git a/wxPython/demo/Grid.py b/wxPython/demo/Grid.py index f1f9fb8309..2647f580f8 100644 --- a/wxPython/demo/Grid.py +++ b/wxPython/demo/Grid.py @@ -31,9 +31,9 @@ class ButtonPanel(wx.Panel): box.Add(btn, 0, wx.ALIGN_CENTER|wx.ALL, 10) self.Bind(wx.EVT_BUTTON, self.OnButton, btn) - self.SetAutoLayout(True) self.SetSizer(box) - + box.Fit(self) + def OnButton(self, evt): modName = buttonDefs[evt.GetId()][0] @@ -96,5 +96,5 @@ and wrapping around to the next row when needed. 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:])