home *** CD-ROM | disk | FTP | other *** search
/ Maximum CD 2011 January / maximum-cd-2011-01.iso / DiscContents / calibre-0.7.26.msi / file_1167 (.txt) < prev    next >
Encoding:
Python Compiled Bytecode  |  2010-10-31  |  1.2 KB  |  23 lines

  1. # Source Generated with Decompyle++
  2. # File: in.pyc (Python 2.6)
  3.  
  4. __license__ = 'GPL v3'
  5. __copyright__ = '2010, Kovid Goyal <kovid@kovidgoyal.net>'
  6. __docformat__ = 'restructuredtext en'
  7. from PyQt4.Qt import QUrl
  8. from calibre.gui2 import open_url
  9. from calibre.gui2.actions import InterfaceAction
  10.  
  11. class HelpAction(InterfaceAction):
  12.     name = 'Help'
  13.     action_spec = (_('Help'), 'help.png', _('Browse the calibre User Manual'), _('F1'))
  14.     
  15.     def genesis(self):
  16.         self.qaction.triggered.connect(self.show_help)
  17.  
  18.     
  19.     def show_help(self, *args):
  20.         open_url(QUrl('http://calibre-ebook.com/user_manual'))
  21.  
  22.  
  23.