home *** CD-ROM | disk | FTP | other *** search
/ Maximum CD 2011 February / maximum-cd-2011-02.iso / DiscContents / digsby_setup85.exe / lib / gui / helpdigsby.pyo (.txt) < prev    next >
Encoding:
Python Compiled Bytecode  |  2010-11-24  |  1.3 KB  |  34 lines

  1. # Source Generated with Decompyle++
  2. # File: in.pyo (Python 2.6)
  3.  
  4. __all__ = [
  5.     'show_research_popup',
  6.     'show_research_popup_once']
  7. HEADER = _('Keep Digsby Free and Ad Free')
  8. MINOR = _("Digsby will use your computer's free time using it to conduct both free and paid research.")
  9.  
  10. def _on_options():
  11.     prefsdialog = prefsdialog
  12.     import gui.pref
  13.     prefsdialog.show('helpdigsby')
  14.  
  15.  
  16. def show_research_popup():
  17.     popup = popup
  18.     import gui.toast
  19.     buttons = [
  20.         (_('Options'), _on_options),
  21.         (_('OK'), (lambda : pass))]
  22.     popup(header = HEADER, minor = MINOR, sticky = True, buttons = buttons)
  23.  
  24.  
  25. def show_research_popup_once():
  26.     pref = pref
  27.     setpref = setpref
  28.     import common
  29.     if not pref('research.showed_notification', default = False, type = bool):
  30.         show_research_popup()
  31.     
  32.     setpref('research.showed_notification', True)
  33.  
  34.