Logo Search packages:      
Sourcecode: calibre version File versions  Download package

restart.py

#!/usr/bin/env python
# vim:fileencoding=UTF-8:ts=4:sw=4:sta:et:sts=4:ai

__license__   = 'GPL v3'
__copyright__ = '2010, Kovid Goyal <kovid@kovidgoyal.net>'
__docformat__ = 'restructuredtext en'


from calibre.gui2.actions import InterfaceAction

class RestartAction(InterfaceAction):

    name = 'Restart'
    action_spec = (_('&Restart'), None, None, _('Ctrl+R'))

    def genesis(self):
        self.qaction.triggered.connect(self.restart)

    def restart(self, *args):
        self.gui.quit(restart=True)



Generated by  Doxygen 1.6.0   Back to index