Пример #1
0
    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()))
Пример #2
0
    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()))
Пример #3
0
 def show_prefs_notifications(a):
     import gui.pref.prefsdialog as prefsdialog
     prefsdialog.show('notifications')
Пример #4
0
def _on_options():
    from gui.pref import prefsdialog
    prefsdialog.show('helpdigsby')
Пример #5
0
 def learnmore(*a, **k):
     import gui.pref.prefsdialog as prefsdialog
     prefsdialog.show('research')
Пример #6
0
def prefsdialog_show(name):
    import gui.pref.prefsdialog as prefsdialog
    return prefsdialog.show(name)
Пример #7
0
 def show_preferences(self, event=None):
     prefsdialog.show('accounts')
Пример #8
0
 def accounts(self, event=None):
     prefsdialog.show('accounts')
Пример #9
0
 def edit_alerts(self):
     import gui.pref.prefsdialog as prefsdialog
     prefsdialog.show('notifications')
Пример #10
0
 def accounts(self, event=None):
     prefsdialog.show('accounts')
Пример #11
0
 def edit_status_message(self, event=None):
     import gui.pref.prefsdialog as prefsdialog
     prefsdialog.show('status')
Пример #12
0
 def show_preferences(self, event=None):
     prefsdialog.show('accounts')
Пример #13
0
 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')
Пример #14
0
 def skins(self, event=None):
     prefsdialog.show('appearance')
Пример #15
0
def prefsdialog_show(name):
    import gui.pref.prefsdialog as prefsdialog
    return prefsdialog.show(name)
Пример #16
0
 def skins(self, event=None):
     prefsdialog.show('appearance')
Пример #17
0
 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')
Пример #18
0
 def edit_alerts(self):
     import gui.pref.prefsdialog as prefsdialog
     prefsdialog.show('notifications')
Пример #19
0
 def edit_status_message(self, event=None):
     import gui.pref.prefsdialog as prefsdialog
     prefsdialog.show('status')