]> git.saurik.com Git - wxWidgets.git/commitdiff
Layout tweak
authorRobin Dunn <robin@alldunn.com>
Thu, 16 Nov 2006 23:43:03 +0000 (23:43 +0000)
committerRobin Dunn <robin@alldunn.com>
Thu, 16 Nov 2006 23:43:03 +0000 (23:43 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43454 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

wxPython/demo/Grid.py

index d2c1af22e94210277b2d5fda8b03d3b83db5706a..2647f580f85c2f1700821bbb6843a384dfa4f345 100644 (file)
@@ -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]