diff options
Diffstat (limited to 'plugins/python/welcome/plugin.py')
-rw-r--r-- | plugins/python/welcome/plugin.py | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/plugins/python/welcome/plugin.py b/plugins/python/welcome/plugin.py new file mode 100644 index 0000000..8a9f9a2 --- /dev/null +++ b/plugins/python/welcome/plugin.py @@ -0,0 +1,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 |