home *** CD-ROM | disk | FTP | other *** search
/ Maximum CD 2011 January / maximum-cd-2011-01.iso / DiscContents / calibre-0.7.26.msi / file_1170 (.txt) < prev    next >
Encoding:
Python Compiled Bytecode  |  2010-10-31  |  1.1 KB  |  21 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 calibre.gui2.actions import InterfaceAction
  8.  
  9. class RestartAction(InterfaceAction):
  10.     name = 'Restart'
  11.     action_spec = (_('&Restart'), None, None, _('Ctrl+R'))
  12.     
  13.     def genesis(self):
  14.         self.qaction.triggered.connect(self.restart)
  15.  
  16.     
  17.     def restart(self, *args):
  18.         self.gui.quit(restart = True)
  19.  
  20.  
  21.