wize.py 文件源码

python
阅读 19 收藏 0 点赞 0 评论 0

项目:wxWize 作者: AndersMunch 项目源码 文件源码
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)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号