mirror of
https://github.com/wassname/scikit-image.git
synced 2026-07-20 12:40:31 +08:00
Minor cleanup.
This commit is contained in:
@@ -76,10 +76,7 @@ class Plugin(QtGui.QDialog):
|
||||
self.image_filter(*arguments, **kwargs)
|
||||
|
||||
def _get_value(self, param):
|
||||
if hasattr(param, 'val'):
|
||||
return param.val()
|
||||
else:
|
||||
return param
|
||||
return param if not hasattr(param, 'val') else param.val()
|
||||
|
||||
def add_widget(self, widget):
|
||||
if widget.ptype == 'kwarg':
|
||||
|
||||
Reference in New Issue
Block a user