def __init__(self, parent, jumpTo=None):
        self.model = ZAccountManagerModel()
        self.model.getService().addListener(self)
        jumpToPageId = self._resolveJumpTo(jumpTo)

        ZPreferencesDialog.__init__(self, parent, jumpToPageId)
        ZPersistentPrefsDialogMixin.__init__(self, IZAppUserPrefsKeys.ACCOUNT_MANAGER_DIALOG, False)
    def _bindWidgetEvents(self):
        ZPreferencesDialog._bindWidgetEvents(self)

        self.Bind(wx.EVT_BUTTON, self.onAddAccount, self.addAccountButton)
        self.Bind(wx.EVT_BUTTON, self.onRemoveAccount, self.removeAccountButton)

        self.Bind(wx.EVT_TREE_DELETE_ITEM, self.onAccountTreeItemDeleted, self.prefsTreeView)
        self.Bind(wx.EVT_TREE_SEL_CHANGED, self.onAccountTreeItemChanged, self.prefsTreeView)
Exemple #3
0
    def __init__(self, parent, jumpTo=None):
        self.model = ZAccountManagerModel()
        self.model.getService().addListener(self)
        jumpToPageId = self._resolveJumpTo(jumpTo)

        ZPreferencesDialog.__init__(self, parent, jumpToPageId)
        ZPersistentPrefsDialogMixin.__init__(
            self, IZAppUserPrefsKeys.ACCOUNT_MANAGER_DIALOG, False)
Exemple #4
0
    def _bindWidgetEvents(self):
        ZPreferencesDialog._bindWidgetEvents(self)

        self.Bind(wx.EVT_BUTTON, self.onAddAccount, self.addAccountButton)
        self.Bind(wx.EVT_BUTTON, self.onRemoveAccount,
                  self.removeAccountButton)

        self.Bind(wx.EVT_TREE_DELETE_ITEM, self.onAccountTreeItemDeleted,
                  self.prefsTreeView)
        self.Bind(wx.EVT_TREE_SEL_CHANGED, self.onAccountTreeItemChanged,
                  self.prefsTreeView)
    def _destroy(self):
        ZPreferencesDialog._destroy(self)

        self.model.getService().removeListener(self)
 def __init__(self, parent, jumpToPageId = None):
     self.model = ZPreferencesModel()
     
     ZPreferencesDialog.__init__(self, parent, jumpToPageId)
     ZPersistentPrefsDialogMixin.__init__(self, IZAppUserPrefsKeys.USERPREFS_DIALOG, False)
Exemple #7
0
    def __init__(self, parent, jumpToPageId=None):
        self.model = ZPreferencesModel()

        ZPreferencesDialog.__init__(self, parent, jumpToPageId)
        ZPersistentPrefsDialogMixin.__init__(
            self, IZAppUserPrefsKeys.USERPREFS_DIALOG, False)
Exemple #8
0
    def _destroy(self):
        ZPreferencesDialog._destroy(self)

        self.model.getService().removeListener(self)