summaryrefslogtreecommitdiff
path: root/plugins/python/welcome/plugin.py
blob: 8a9f9a2f4f5abcf6155a3943905f8a808dc19489 (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
34
35
36
#!/usr/bin/python
# -*- coding: utf-8 -*-

from pychrysalide import PluginModule
from welcome.panel import WelcomePanel


class WelcomePlugin(PluginModule):
    """Interface graphique d'accueil."""


    def get_interface(self):
        """Provide the full plugin description."""

        desc = {

            'name' : 'Welcome',
            'desc' : 'Introduce the software when no project is loaded',
            'version' : '0.1',

            'actions' : [ PluginModule.PGA_PLUGIN_INIT ]

        }

        return desc


    def init(self, ref):
        """Initialise l'extension."""

        self._panel = WelcomePanel()

        self._panel.dock()
        self._panel.register()

        return True