summaryrefslogtreecommitdiff
path: root/python-plugins/hellopanel/core.py
blob: 42eb44d04ea926af4e62212d74fa276223457b4e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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