Updated gui.panel.note and simplified hooke.plugin.note.
[hooke.git] / hooke / plugin / multifit.py
index ee42ea56f3eb9d39148988e41bc5e5d2baaf485f..56befcaeef7f8c9d6d757993029da4f77e14e617 100644 (file)
@@ -31,8 +31,7 @@ from ..plugin.playlist import PlaylistArgument
 class MultifitPlugin (Plugin):
     def __init__(self):
         super(MultifitPlugin, self).__init__(name='multifit')
-        self._commands = [MultifitCommand()]
-        self._setup_commands()
+        self._commands = [MultifitCommand(self)]
 
 
 class MultifitCommand (Command):
@@ -46,7 +45,7 @@ class MultifitCommand (Command):
     """
     #NOTE: centerzero plot modifier should be activated (set centerzero
     #1).
-    def __init__(self):
+    def __init__(self, plugin):
         super(MultifitCommand, self).__init__(
             name='multifit',
             arguments=[
@@ -86,7 +85,7 @@ data between them.
 Perform the fits on the current curve instead of iterating.
 """.strip()),
                 ],
-            help=self.__doc__)
+            help=self.__doc__, plugin=plugin)
 
     def _run(self, hooke, inqueue, outqueue, params):
         counter=0