mirror of
https://github.com/wassname/scikit-image.git
synced 2026-08-02 13:03:48 +08:00
ENH: Move closeEvent definition to base class.
This commit is contained in:
@@ -21,7 +21,3 @@ class CannyPlugin(OverlayPlugin):
|
||||
def image_filter(self, *args, **kwargs):
|
||||
image = canny(*args, **kwargs)
|
||||
self.overlay = image
|
||||
|
||||
def closeEvent(self, event):
|
||||
self.overlay = None
|
||||
super(CannyPlugin, self).closeEvent(event)
|
||||
|
||||
@@ -35,3 +35,7 @@ class OverlayPlugin(Plugin):
|
||||
else:
|
||||
self._overlay_plot.set_array(image)
|
||||
self.image_viewer.redraw()
|
||||
|
||||
def closeEvent(self, event):
|
||||
self.overlay = None
|
||||
super(OverlayPlugin, self).closeEvent(event)
|
||||
|
||||
Reference in New Issue
Block a user