コード例 #1
0
ファイル: status_tag_urls.py プロジェクト: AlexUlrich/digsby
 def after():
     from gui.toast.toast import popup
     popup(header = _('Spread the Word!'),
           icon   = skin.get('appdefaults.taskbaricon', None),
           major  = None,
           minor  = _("We've made it easier to spread the word about Digsby by adding a link to your IM status. You can disable this option in Preferences > Status."),
           sticky = True,
           max_lines=10,
           onclose=self.response,
           buttons=[(_('Close'), lambda *a, **k: None)])
コード例 #2
0
 def after():
     from gui.toast.toast import popup
     popup(
         header=_('Spread the Word!'),
         icon=skin.get('appdefaults.taskbaricon', None),
         major=None,
         minor=
         _("We've made it easier to spread the word about Digsby by adding a link to your IM status. You can disable this option in Preferences > Status."
           ),
         sticky=True,
         max_lines=10,
         onclose=self.response,
         buttons=[(_('Close'), lambda *a, **k: None)])
コード例 #3
0
ファイル: toasthelp.py プロジェクト: AlexUlrich/digsby
def on_popup(options):
    global _didshow
    if _didshow:
        return
    if pref(SHOWN_HELP_PREF, default=False, type=bool):
        _didshow = True
        return

    _didshow = True # A backup in case setpref fails, so you only get one per session.
    setpref(SHOWN_HELP_PREF, True)

    popup(header = _('TIP: Popup Notifications'),
          major  = None,
          minor  = _("You can right click popups to close them right away instead of waiting for them to fade out."),
          sticky = True,
          icon   = skin.get('appdefaults.notificationicons.error'),
          always_show=True)
コード例 #4
0
ファイル: toasthelp.py プロジェクト: sgricci/digsby
def on_popup(options):
    global _didshow
    if _didshow:
        return
    if pref(SHOWN_HELP_PREF, default=False, type=bool):
        _didshow = True
        return

    _didshow = True  # A backup in case setpref fails, so you only get one per session.
    setpref(SHOWN_HELP_PREF, True)

    popup(
        header=_('TIP: Popup Notifications'),
        major=None,
        minor=
        _("You can right click popups to close them right away instead of waiting for them to fade out."
          ),
        sticky=True,
        icon=skin.get('appdefaults.notificationicons.error'),
        always_show=True)
コード例 #5
0
ファイル: researchtoast.py プロジェクト: sgricci/digsby
def _show_research_popup():
    import wx
    assert wx.IsMainThread()
    import gui.skin
    from common import setpref
    from gui.toast.toast import popup

    def learnmore(*a, **k):
        import gui.pref.prefsdialog as prefsdialog
        prefsdialog.show('research')

    _didshowresearch = True
    setpref(SHOWN_RESEARCH_POPUP, True)
    popup(header = _('Help Digsby Stay Free'),
          major  = None,
          minor  = _("You are helping Digsby stay free by allowing Digsby to use your PC's idle time."),
          sticky = True,
          onclick = learnmore,
          icon = gui.skin.get('appdefaults.taskbaricon'),
          buttons = [(_('Learn More'), learnmore),
                     (_('Close'), lambda *a, **k: None)])