Commit 56ba62c8 authored by Duane Johnson's avatar Duane Johnson

Center widgets in test.py

parent f4d18e4d
...@@ -6,12 +6,12 @@ from zbuttons import ZButtons ...@@ -6,12 +6,12 @@ from zbuttons import ZButtons
class MyFrame(wx.Frame): class MyFrame(wx.Frame):
def __init__(self, parent, id, title): 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() sizer = wx.BoxSizer()
self.xy = XYButtons(self, moveCallback=self.moveXY) 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) self.z = ZButtons(self, moveCallback=self.moveZ)
sizer.Add(self.z) sizer.Add(self.z, flag=wx.ALIGN_CENTER)
self.SetSizer(sizer) self.SetSizer(sizer)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment