def __init__(self, pdata, dbstate, uistate, nav_group=0): BasePersonView.__init__(self, pdata, dbstate, uistate, _('Person View'), PersonListModel, nav_group=nav_group)
def define_actions(self): """ Define actions for the popup menu specific to the tree view. """ BasePersonView.define_actions(self) self.action_list.extend([('OpenAllNodes', self.open_all_nodes), ('CloseAllNodes', self.close_all_nodes)])
def define_actions(self): """ Define actions for the popup menu specific to the tree view. """ BasePersonView.define_actions(self) self.action_list.extend([ ('OpenAllNodes', self.open_all_nodes), ('CloseAllNodes', self.close_all_nodes)])
def define_actions(self): """ Define actions for the popup menu specific to the tree view. """ BasePersonView.define_actions(self) self.all_action.add_actions([ ('OpenAllNodes', None, _("Expand all Nodes"), None, None, self.open_all_nodes), ('CloseAllNodes', None, _("Collapse all Nodes"), None, None, self.close_all_nodes), ])
def __init__(self, pdata, dbstate, uistate, nav_group=0): BasePersonView.__init__(self, pdata, dbstate, uistate, _('People Tree View'), PersonTreeModel, nav_group=nav_group)