mirror of
https://github.com/wassname/scikit-image.git
synced 2026-07-16 11:21:25 +08:00
BUG: Don't override image_filter method if defined by subclass
This commit is contained in:
@@ -32,7 +32,9 @@ class Plugin(QtGui.QDialog):
|
||||
super(Plugin, self).__init__()
|
||||
|
||||
self.image_viewer = None
|
||||
self.image_filter = image_filter
|
||||
# If subclass defines `image_filter` method ignore input.
|
||||
if not hasattr(self, 'image_filter'):
|
||||
self.image_filter = image_filter
|
||||
|
||||
self.setWindowTitle(self.name)
|
||||
self.layout = QtGui.QGridLayout(self)
|
||||
|
||||
Reference in New Issue
Block a user