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]
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:])