]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/demo/Grid.py
Updated build files.
[wxWidgets.git] / wxPython / demo / Grid.py
index f1f9fb8309f301a4fd6d734632e894482ccfdf47..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]
@@ -96,5 +96,5 @@ and wrapping around to the next row when needed.
 if __name__ == '__main__':
     import sys,os
     import run
-    run.main(['', os.path.basename(sys.argv[0])])
+    run.main(['', os.path.basename(sys.argv[0])] + sys.argv[1:])