]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/demo/Grid.py
Another package name fix
[wxWidgets.git] / 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]