a slight update, Im now even more confused, this simple code doesn't work:
Code:
__init__.py
from calibre.customize import InterfaceActionBase
class AdvancedSeriesCreator(InterfaceActionBase):
name = 'Advanced Series Creator'
description = 'An advanced plugin'
supported_platforms = ['windows', 'osx', 'linux']
author = 'SilverWolf'
version = (1, 0, 0)
minimum_calibre_version = (0, 7, 53)
actual_plugin = 'calibre_plugins.advanced_series_creator.ui:InterfacePlugin'
-----------------------------------------
ui.py
from calibre.gui2.actions import InterfaceAction
class InterfacePlugin(InterfaceAction):
#name = 'Interface Plugin Demo'
name = 'Interface Plugin Demo aasd'
action_spec = ("Create New Series", None, 'Create a new series', 'Ctrl+Shift+F1')
def genesis(self):
icon = get_icons('images/icon.png')
self.qaction.setIcon(icon)