summaryrefslogtreecommitdiff
path: root/python-plugins/hellopanel/core.py
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2018-12-14 16:41:51 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2018-12-14 16:41:51 (GMT)
commit370169058fc6f4a7ed6013d0f965ac75beff4f5e (patch)
tree5df84ac93eaed31402f41f97e2ede3a81265efe7 /python-plugins/hellopanel/core.py
parent0081d76ba15b08be04cd2a7c7c65a7c0e6e7a6fe (diff)
Created a demo GUI panel.
Diffstat (limited to 'python-plugins/hellopanel/core.py')
-rw-r--r--python-plugins/hellopanel/core.py33
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