some fixes
This commit is contained in:
parent
3ef581bc5d
commit
19fb905554
6 changed files with 19 additions and 14 deletions
|
@ -1,4 +1,4 @@
|
|||
#Plugins API
|
||||
# Plugins API
|
||||
|
||||
In Toxygen plugin is single python (supported Python 3.0 - 3.4) module (.py file) and directory with data associated with it.
|
||||
Every module must contain one class derived from PluginSuperClass defined in [plugin_super_class.py](/src/plugins/plugin_super_class.py). Instance of this class will be created by PluginLoader class (defined in [plugin_support.py](/src/plugin_support.py) ). This class can enable/disable plugins and send data to it.
|
||||
|
@ -18,7 +18,7 @@ All plugin's data should be stored in following structure:
|
|||
```
|
||||
|
||||
Plugin MUST override:
|
||||
- __init__ with params: tox (Tox instance), profile (Profile instance), settings (Settings instance), encrypt_save (ToxEncryptSave instance). Call super().__init__ with params plugin_full_name, plugin_short_name, tox, profile, settings, encrypt_save.
|
||||
- __init__ with params: tox (Tox instance), profile (Profile instance), settings (Settings instance), encrypt_save (ToxES instance). Call super().__init__ with params plugin_full_name, plugin_short_name, tox, profile, settings, encrypt_save.
|
||||
|
||||
Plugin can override following methods:
|
||||
- get_description - this method should return plugin description.
|
||||
|
@ -51,7 +51,7 @@ Exceptions:
|
|||
|
||||
Plugin's methods MUST NOT raise exceptions.
|
||||
|
||||
#Examples
|
||||
# Examples
|
||||
|
||||
You can find examples in [official repo](https://github.com/toxygen-project/toxygen_plugins)
|
||||
|
||||
|
|
|
@ -1,21 +1,21 @@
|
|||
#Plugins
|
||||
# Plugins
|
||||
|
||||
Toxygen is the first [Tox](https://tox.chat/) client with plugins support. Plugin is Python 3.4 module (.py file) and directory with plugin's data which provide some additional functionality.
|
||||
|
||||
#How to write plugin
|
||||
# How to write plugin
|
||||
|
||||
Check [Plugin API](/docs/plugin_api.md) for more info
|
||||
|
||||
#How to install plugin
|
||||
# How to install plugin
|
||||
|
||||
Toxygen comes without preinstalled plugins.
|
||||
|
||||
1. Put plugin and directory with its data into /src/plugins/ or import it via GUI (In menu: Plugins -> Import plugin)
|
||||
2. Restart Toxygen
|
||||
1. Put plugin and directory with its data into /src/plugins/ or import it via GUI (In menu: Plugins => Import plugin)
|
||||
2. Restart Toxygen or choose Plugins => Reload plugins in menu.
|
||||
|
||||
##Note: /src/plugins/ should contain plugin_super_class.py and __init__.py
|
||||
## Note: /src/plugins/ should contain plugin_super_class.py and __init__.py
|
||||
|
||||
#Plugins list
|
||||
# Plugins list
|
||||
|
||||
WARNING: It is unsecure to install plugin not from this list!
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue