Center widgets in test.py

master
Duane Johnson 2011-11-07 22:10:27 -06:00
parent f4d18e4dff
commit 56ba62c888
1 changed files with 3 additions and 3 deletions

View File

@ -6,12 +6,12 @@ from zbuttons import ZButtons
class MyFrame(wx.Frame):
def __init__(self, parent, id, title):
wx.Frame.__init__(self, parent, id, title, wx.DefaultPosition, wx.Size(800, 600))
wx.Frame.__init__(self, parent, id, title, wx.DefaultPosition, wx.Size(600, 400))
sizer = wx.BoxSizer()
self.xy = XYButtons(self, moveCallback=self.moveXY)
sizer.Add(self.xy)
sizer.Add(self.xy, flag=wx.ALIGN_CENTER)
self.z = ZButtons(self, moveCallback=self.moveZ)
sizer.Add(self.z)
sizer.Add(self.z, flag=wx.ALIGN_CENTER)
self.SetSizer(sizer)