mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
01d6e2ffda
commit
c106f3c89c
@ -151,7 +151,7 @@ calibre's plugin loading system defines a couple of built-in functions that allo
|
|||||||
Enabling user configuration of your plugin
|
Enabling user configuration of your plugin
|
||||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||||
|
|
||||||
To allow users to configure your plugin, you must define three methods in your base plugin class, '**is_customizable**, **config_widget** and **save_settings** as shown below:
|
To allow users to configure your plugin, you must define three methods in your base plugin class, **is_customizable**, **config_widget** and **save_settings** as shown below:
|
||||||
|
|
||||||
.. literalinclude:: plugin_examples/interface_demo/__init__.py
|
.. literalinclude:: plugin_examples/interface_demo/__init__.py
|
||||||
:pyobject: InterfacePluginDemo.is_customizable
|
:pyobject: InterfacePluginDemo.is_customizable
|
||||||
|
Loading…
x
Reference in New Issue
Block a user