diff options
Diffstat (limited to 'python-plugins/hellopanel/core.py')
| -rw-r--r-- | python-plugins/hellopanel/core.py | 33 | 
1 files changed, 33 insertions, 0 deletions
| diff --git a/python-plugins/hellopanel/core.py b/python-plugins/hellopanel/core.py new file mode 100644 index 0000000..42eb44d --- /dev/null +++ b/python-plugins/hellopanel/core.py @@ -0,0 +1,33 @@ + +from pychrysalide.features import * +from .panel import HelloPanel + + +class HelloPlugin(PluginModule): +    """Simple demo plugin to build a GUI panel.""" + + +    def get_interface(self): +        """Provide the full plugin description.""" + +        desc = { + +            'name' : 'HelloPanel', +            'desc' : 'Say hello in the main GUI', +            'version' : '0.1', + +            'actions' : [ PluginModule.PGA_PLUGIN_INIT ] + +        } + +        return desc + + +    def init(self): +        """Initialize the plugin.""" + +        p = HelloPanel() + +        register_panel(p); + +        return True | 
