summaryrefslogtreecommitdiff
path: root/plugins/python/liveconv
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/python/liveconv')
-rw-r--r--plugins/python/liveconv/panel.py14
-rw-r--r--plugins/python/liveconv/plugin.py4
2 files changed, 4 insertions, 14 deletions
diff --git a/plugins/python/liveconv/panel.py b/plugins/python/liveconv/panel.py
index 6503b7b..6d308d6 100644
--- a/plugins/python/liveconv/panel.py
+++ b/plugins/python/liveconv/panel.py
@@ -13,6 +13,8 @@ class ConvPanel(PanelItem):
_key = 'liveconv'
+ _path = 'MES'
+
def __init__(self):
"""Initialize the GUI panel."""
@@ -22,17 +24,7 @@ class ConvPanel(PanelItem):
widget = BuiltNamedWidget('Converter', 'Data live converter', filename)
- params = {
-
- 'personality' : PanelItem.PanelItemPersonality.SINGLETON,
- 'widget' : widget,
-
- 'dock' : True,
- 'path' : 'MES'
-
- }
-
- super(ConvPanel, self).__init__(**params)
+ super(ConvPanel, self).__init__(widget)
self._conversions = {
diff --git a/plugins/python/liveconv/plugin.py b/plugins/python/liveconv/plugin.py
index eadbea0..8caeb17 100644
--- a/plugins/python/liveconv/plugin.py
+++ b/plugins/python/liveconv/plugin.py
@@ -21,6 +21,4 @@ class LiveConverter(PluginModule):
super(LiveConverter, self).__init__()
- p = ConvPanel()
-
- core.register_panel(p)
+ core.register_panel(ConvPanel)