home *** CD-ROM | disk | FTP | other *** search
- # Source Generated with Decompyle++
- # File: in.pyc (Python 2.6)
-
- __license__ = 'GPL v3'
- __copyright__ = '2010, Kovid Goyal <kovid@kovidgoyal.net>'
- __docformat__ = 'restructuredtext en'
- from calibre.gui2.actions import InterfaceAction
-
- class OpenFolderAction(InterfaceAction):
- name = 'Open Folder'
- action_spec = (_('Open containing folder'), 'document_open.png', None, _('O'))
- dont_add_to = frozenset([
- 'toolbar-device',
- 'context-menu-device'])
- action_type = 'current'
-
- def genesis(self):
- self.qaction.triggered.connect(self.gui.iactions['View'].view_folder)
-
-
- def location_selected(self, loc):
- enabled = loc == 'library'
- self.qaction.setEnabled(enabled)
-
-
-