X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8eca4fef106b8327e2e55636de3f68a511a4c392..68fc5c8025e38b9d827383fbfe7ce509ae331c1f:/wxPython/demo/Grid.py diff --git a/wxPython/demo/Grid.py b/wxPython/demo/Grid.py index d2c1af22e9..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]