mirror of
https://github.com/wassname/scikit-image.git
synced 2026-06-30 05:57:31 +08:00
Fix add_argument.
`arguments` is a list, but I was treating it like a dict.
This commit is contained in:
@@ -80,7 +80,7 @@ class Plugin(QtGui.QDialog):
|
||||
|
||||
def add_argument(self, name, low, high, callback, **kwargs):
|
||||
name, slider = self.add_slider(name, low, high, callback, **kwargs)
|
||||
self.arguments[name] = slider
|
||||
self.arguments.append(slider)
|
||||
|
||||
def add_keyword_argument(self, name, low, high, callback, **kwargs):
|
||||
name, slider = self.add_slider(name, low, high, callback, **kwargs)
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
from skimage.filter import canny
|
||||
|
||||
from .overlayplugin import OverlayPlugin
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user