From 949e8a8dbad7739d2397b23cb336e88321f33afe Mon Sep 17 00:00:00 2001 From: Cyrille Bagard Date: Fri, 4 Jan 2019 00:47:52 +0100 Subject: Updated the demo Python plugin. --- python-plugins/hellopanel/core.py | 16 +++++----------- 1 file 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 -- cgit v0.11.2-87-g4458