diff options
| author | Cyrille Bagard <nocbos@gmail.com> | 2019-01-03 23:47:52 (GMT) | 
|---|---|---|
| committer | Cyrille Bagard <nocbos@gmail.com> | 2019-01-03 23:47:52 (GMT) | 
| commit | 949e8a8dbad7739d2397b23cb336e88321f33afe (patch) | |
| tree | 33a7ad9ddfb28c013e6b681514d140247121aaad /python-plugins | |
| parent | c5895ba93ea679a130ea97a67c2f56b07697bbaa (diff) | |
Updated the demo Python plugin.
Diffstat (limited to 'python-plugins')
| -rw-r--r-- | python-plugins/hellopanel/core.py | 16 | 
1 files changed, 5 insertions, 11 deletions
| diff --git a/python-plugins/hellopanel/core.py b/python-plugins/hellopanel/core.py index 42eb44d..dd835b2 100644 --- a/python-plugins/hellopanel/core.py +++ b/python-plugins/hellopanel/core.py @@ -7,27 +7,21 @@ class HelloPlugin(PluginModule):      """Simple demo plugin to build a GUI panel.""" -    def get_interface(self): -        """Provide the full plugin description.""" +    def __init__(self): +        """Initialize the plugin for Chrysalide.""" -        desc = { +        interface = {              'name' : 'HelloPanel',              'desc' : 'Say hello in the main GUI',              'version' : '0.1', -            'actions' : [ PluginModule.PGA_PLUGIN_INIT ] +            'actions' : ( )          } -        return desc - - -    def init(self): -        """Initialize the plugin.""" +        super(HelloPlugin, self).__init__(**interface)          p = HelloPanel()          register_panel(p); - -        return True | 
