This commit is contained in:
Kovid Goyal 2017-03-03 18:11:37 +05:30
parent 01d6e2ffda
commit c106f3c89c

View File

@ -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