I want to have a frame with a gridsizer at the left (50%) and at the right a vertical sizer (50%) with a staticLabel and a listbox. All this work well, but now I want to add a small vertical line (staticLine) between these two sizers, but in all my tries, I'm not able to do this because or I see my line that can resize, when I resize the frame, or it is too big, or..., or...
Can someone help me to do this?
class LayerFrame(wx.Frame):
def __init__(self,)
wx.Frame.__init__(self, parent, -1, title, pos=wx.DefaultPosition)
self.sizerFrame = wx.BoxSizer(wx.HORIZONTAL)
sizerObjList = wx.BoxSizer(wx.VERTICAL)
self.ObjList = wx.ListBox(self)
sizerObjList.Add(wx.StaticText(self, -1, 'List'), 0,
wx.CENTER | wx.ALIGN_CENTER | wx.ALL, 5)
sizerObjList.Add(self.ObjList, 1, wx.ALL, 5)
self.sizerGrid = wx.GridSizer(9,2,1,1)
#Add some control to sizerGrid
self.sizerFrame.Add(self.sizerGrid, 1, wx.EXPAND)
#Here I have the problem...
self.sizerFrame.Add( wx.StaticLine(self, -1, style=wx.VERTICAL),
0, wx.ALIGN_TOP | wx.ALIGN_BOTTOM | wx.LEFT | wx.RIGHT, 5)
#Problem end...
self.sizerFrame.Add(sizerObjList, 1, wx.EXPAND)
self.SetSizerAndFit(self.sizerFrame)
Thanks,
Michele