def setup_from_accts(self): # add an "Add" menu containing each email account type self.addList = addList = SimpleMenu(self.fromcombo.menu, 'simplemenu') for emailtype in emailprotocols.keys(): addList.Append([ skinget('serviceicons.%s' % emailtype).Resized(16), protocols[emailtype].name ], method=lambda item, emailtype=emailtype: add_email_account(emailtype)) # link to creating an email account from gui.pref import prefsdialog self.accounts_item = SimpleMenuItem( _('Accounts...'), method=lambda *a: prefsdialog.show('accounts')) # watch the email list for changes pass self._obs_link = profile.emailaccounts.add_list_observer( self.on_email_accounts_changed, self.on_email_accounts_changed, 'enabled') self.tocombo.Bind(EVT_WINDOW_DESTROY, lambda e: (e.Skip(), self.unregister_observers()))
def setup_from_accts(self): # add an "Add" menu containing each email account type self.addList = addList = SimpleMenu(self.fromcombo.menu, 'simplemenu') for emailtype in emailprotocols.keys(): addList.Append([skinget('serviceicons.%s' % emailtype).Resized(16), protocols[emailtype].name], method = lambda item, emailtype=emailtype: add_email_account(emailtype)) # link to creating an email account from gui.pref import prefsdialog self.accounts_item = SimpleMenuItem(_('Accounts...'), method = lambda *a: prefsdialog.show('accounts')) # watch the email list for changes pass self._obs_link = profile.emailaccounts.add_list_observer(self.on_email_accounts_changed, self.on_email_accounts_changed, 'enabled') self.tocombo.Bind(EVT_WINDOW_DESTROY, lambda e: (e.Skip(), self.unregister_observers()))
def show_prefs_notifications(a): import gui.pref.prefsdialog as prefsdialog prefsdialog.show('notifications')
def _on_options(): from gui.pref import prefsdialog prefsdialog.show('helpdigsby')
def learnmore(*a, **k): import gui.pref.prefsdialog as prefsdialog prefsdialog.show('research')
def prefsdialog_show(name): import gui.pref.prefsdialog as prefsdialog return prefsdialog.show(name)
def show_preferences(self, event=None): prefsdialog.show('accounts')
def accounts(self, event=None): prefsdialog.show('accounts')
def edit_alerts(self): import gui.pref.prefsdialog as prefsdialog prefsdialog.show('notifications')
def edit_status_message(self, event=None): import gui.pref.prefsdialog as prefsdialog prefsdialog.show('status')
def sort_by(self, event): global sorts if event.GetId() in sorts: common.setpref('buddylist.sortby', sorts[event.GetId()] + ' none') else: prefsdialog.show('contact_list')
def skins(self, event=None): prefsdialog.show('appearance')