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)])
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)])
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)
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)
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)])