diff options
-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 |