home *** CD-ROM | disk | FTP | other *** search
/ Maximum CD 2011 February / maximum-cd-2011-02.iso / DiscContents / digsby_setup85.exe / lib / plugins / researchdriver / researchtoast.pyo (.txt) < prev   
Encoding:
Python Compiled Bytecode  |  2010-11-24  |  1.7 KB  |  38 lines

  1. # Source Generated with Decompyle++
  2. # File: in.pyo (Python 2.6)
  3.  
  4. RESEARCH_URL = 'http://wiki.digsby.com/doku.php?id=cpuusage'
  5. SHOWN_RESEARCH_POPUP = 'digsby.research.help_stay_free_popup_shown'
  6. _didshowresearch = False
  7.  
  8. def on_research():
  9.     global _didshowresearch
  10.     if _didshowresearch:
  11.         return None
  12.     pref = pref
  13.     import common
  14.     if pref(SHOWN_RESEARCH_POPUP, default = False, type = bool):
  15.         _didshowresearch = True
  16.         return None
  17.     _show_research_popup()
  18.  
  19.  
  20. def _show_research_popup():
  21.     import wx
  22.     import gui.skin as gui
  23.     setpref = setpref
  24.     import common
  25.     popup = popup
  26.     import gui.toast.toast
  27.     
  28.     def learnmore(*a, **k):
  29.         import gui.pref.prefsdialog as prefsdialog
  30.         prefsdialog.show('research')
  31.  
  32.     _didshowresearch = True
  33.     setpref(SHOWN_RESEARCH_POPUP, True)
  34.     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 = [
  35.         (_('Learn More'), learnmore),
  36.         (_('Close'), (lambda : pass))])
  37.  
  38.