Hi 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 box
box1 = 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