From: Robin Dunn Date: Thu, 16 Nov 2006 23:43:03 +0000 (+0000) Subject: Layout tweak X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/80a774ed352dfc22f19f74e8ff211fa9cc017e8d?ds=inline Layout tweak git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43454 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- 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]