Why not stick them in the same column of a GridBagSizer?
···
-----Original Message-----
From: Nigel King [mailto:King@dircon.co.uk]
Sent: Tuesday, August 30, 2005 8:30 AM
To: wxPython-users@lists.wxwidgets.org
Subject: [wxPython-users] BoxSizer AlignmentHi Guys,
I am sure I am being silly!I want wx.BoxSizer to align adjacent boxes top and bottom and
I do not
see a way.This is the substance of what I have tried. Where
def tempBox(self, size):
box_title = wx.StaticBox(self.mainpanel, -1, "temp")
box = wx.StaticBoxSizer(box_title, wx.VERTICAL)
t = wx.StaticText(self.mainpanel, -1, "temp top left")
t1 = wx.StaticText(self.mainpanel, -1, "temp Bottom Right")
box.Add(t, 0, wx.TOP|wx.LEFT, 10)
box.Add(t1, 0, wx.TOP|wx.LEFT, size)
return boxbox1 = self.tempBox(100)
box1 = self.tempBox(200)align = wx.TOP | wx.LEFT | wx.ALIGN_TOP | wx.ALIGN_BOTTOM
s = wxBoxSizer(wx.HORIZONTAL)
s.Add(box1, 0, align, 5)
s.Add(box2, 0, align, 5)So, although the boxes are arranged to be different sizes I
would like
them to be vertically sized to the largest.Help appreciated
Nigel King
---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail:
wxPython-users-help@lists.wxwidgets.org