def __init__(self, parent): FyLayoutMixin.__init__(self, parent) self._2sz_options = SimpGridViewOptions(self), Fixed self._2sz_grid = wx.grid.Grid(self), Auto self._2sz_grid.CreateGrid(InitRowCount, InitColumnCount) #BUG: 初始化时创建好 #self._2sz_grid.GetGridCornerLabelWindow() #获取左上角窗格 self.FyLayout()
def __init__(self, parent): FyLayoutMixin.__init__(self, parent) self._2sz_options_pane = self.MakeOptions(), Fixed self._2sz_tree_pane = self.MakeTree(), Auto self.FyLayout() self.Bind(wx.EVT_BUTTON, self.OnButton) self.Bind(wx.EVT_TREE_ITEM_ACTIVATED, self.OnNodeActivated) self.Bind(wx.EVT_TREE_ITEM_MENU, self.OnNodeMenu) self.Bind(wx.EVT_TREE_SEL_CHANGING, self.OnHover)
def __init__(self, parent, root): ''' root : must be instance of Node.node.common or its subclass ''' FyLayoutMixin.__init__(self, parent) self._2sz__tree = wx.TreeCtrl(self), Auto self.FyLayout() self.__root = self._2sz__tree.AddRoot(text=` root `) self._2sz__tree.SelectItem(self.__root) self.SetUserData(self.__root, root) self.AddItems(self.__root, root.GetKids()) self._2sz__tree.Update()
def __init__(self, parent): FyLayoutMixin.__init__(self, parent) self.aspect = self._horizental self._2sz_new = wx.Button(self, size=(DefaultButtonWidth, Auto), label='New'), Auto self._2sz_open = wx.Button(self, size=(DefaultButtonWidth, Auto), label='Open'), Auto self._2sz_save = wx.Button(self, size=(DefaultButtonWidth, Auto), label='Save'), Auto self._2sz_close = wx.Button(self, size=(DefaultButtonWidth, Auto), label='Close'), Auto self.FyLayout()
def __init__(self, parent): FyLayoutMixin.__init__(self, parent) self.aspect = self._horizental self._2sz_collapse_all = wx.Button(self, size=(DefaultButtonWidth, Auto), label='CA'), Auto self._2sz_expand_all = wx.Button(self, size=(DefaultButtonWidth, Auto), label='EA'), Auto self._2sz_collapse_this = wx.Button(self, size=(DefaultButtonWidth, Auto), label='C'), Auto self._2sz_expand_this = wx.Button(self, size=(DefaultButtonWidth, Auto), label='E'), Auto self.FyLayout()
def __init__(self, parent): FyLayoutMixin.__init__(self, parent) self._2sz_flex = TreeViewOptions.Flex(self), Fixed self._2sz_manipulate = TreeViewOptions.Manipulate(self), Fixed self.FyLayout()
def MakeTree(self): return FyLayoutMixin(self)
def MakeOptions(self): return FyLayoutMixin(self)
def __init__(self, parent, content_type='text'): FyLayoutMixin.__init__(self, parent) self._2sz_paper = Text(self, 'multiline', 'autoscroll', 'bestwrap', 'left', 'processenter'), Auto self.content_type = content_type self.FyLayout()
def __init__(self, parent): FyLayoutMixin.__init__(self, parent) self._2sz_caption = wx.TextCtrl(parent, style=wx.TE_PROCESS_ENTER), Auto self.FyLayout()