From 80a774ed352dfc22f19f74e8ff211fa9cc017e8d Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Thu, 16 Nov 2006 23:43:03 +0000 Subject: [PATCH] Layout tweak git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43454 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- wxPython/demo/Grid.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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] -- 2.50.0