def create_postorder(self):
if len(self.zchildren)!=2 or not all(isinstance(ch.w, wx.Window) for ch in self.zchildren):
raise TypeError('SplitterWindow must have exactly 2 wx.Window children')
if self.sashGravity is not None: self.w.SetSashGravity(self.sashGravity)
if self.minimumPaneSize is not None: self.w.SetMinimumPaneSize(self.minimumPaneSize)
if self.orient == wx.VERTICAL: # strange as it sounds, SplitHorizontally stacks subwindows vertically
self.w.SplitHorizontally(self.zchildren[0].w, self.zchildren[1].w)
else:
self.w.SplitVertically(self.zchildren[0].w, self.zchildren[1].w)
if self.sashPosition is not None: self.w.SetSashPosition(self.sashPosition)
评论列表
文章目录