def __init__(self, parent, id): wx.Panel.__init__(self, parent, id, wx.DefaultPosition, wx.DefaultSize, wx.NO_BORDER) sty = wx.SP_3D sty = wx.SP_NOBORDER | wx.SP_3DSASH self.splitwin = wx.SplitterWindow(self, wx.ID_ANY, (-1, -1), (-1, -1), style=sty) topw1 = pa1(self.splitwin) bottomw1 = pa2(self.splitwin) self.splitwin.SplitHorizontally(topw1, bottomw1, sashPosition=30) self.splitwin.SetMinimumPaneSize(100) b = 0 vsizer = wx.BoxSizer(wx.VERTICAL) vsizer.Add(self.splitwin, proportion=1, flag=wx.EXPAND | wx.ALL, border=b) self.SetSizer(vsizer)
def __init__(self, parent): wx.Panel.__init__(self, parent) #add a splitter windows containing two panels sty = wx.SP_3D #ok #~ sty = wx.SP_3D | wx.SP_3DSASH | wx.SP_LIVE_UPDATE #ok, but flickering self.splitwin = wx.SplitterWindow(self, wx.ID_ANY, style=sty) topw = pa1(self.splitwin) bottomw = pa2(self.splitwin) self.splitwin.SplitHorizontally(topw, bottomw, sashPosition=30) self.splitwin.SetMinimumPaneSize(100) b = 0 vsizer = wx.BoxSizer(wx.VERTICAL) vsizer.Add(self.splitwin, 1, wx.EXPAND | wx.ALL, b) self.SetSizer(vsizer)
def __init__(self, parent): wx.Panel.__init__(self, parent) #add a splitter windows containing two panels sty = wx.SP_3D #ok self.splitwin = wx.SplitterWindow(self, wx.ID_ANY, style=sty) topw = pa1(self.splitwin) bottomw = pa2(self.splitwin) self.splitwin.SplitHorizontally(topw, bottomw, sashPosition=30) self.splitwin.SetMinimumPaneSize(50) wwhite = ColWin(self, wx.ID_ANY, wx.WHITE) b1, b2 = 10, 0 vsizer = wx.BoxSizer(wx.VERTICAL) vsizer.Add(wwhite, 1, wx.EXPAND | wx.ALL, b1) vsizer.Add(self.splitwin, 1, wx.EXPAND | wx.ALL, b2) self.SetSizer(vsizer)