View Single Post
Old 03-06-2021, 10:17 PM   #2
SilverWolf1793
Junior Member
SilverWolf1793 began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Mar 2021
Device: none
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)

Last edited by PeterT; 03-07-2021 at 12:39 AM.
SilverWolf1793 is offline   Reply With Quote