Change ImageViewer to automatically call plugins.

This commit is contained in:
Tony S Yu
2012-07-21 22:03:46 -05:00
parent 51711213f7
commit 4d747720de
3 changed files with 4 additions and 4 deletions
+2
View File
@@ -104,6 +104,8 @@ class ImageViewer(QtGui.QMainWindow):
self.close()
def show(self):
for p in self.plugins:
p.show()
super(ImageViewer, self).show()
sys.exit(qApp.exec_())
+1 -2
View File
@@ -5,6 +5,5 @@ from skimage.viewer.plugins.canny import CannyPlugin
image = data.camera()
viewer = ImageViewer(image)
p = CannyPlugin(viewer)
p.show()
CannyPlugin(viewer)
viewer.show()
+1 -2
View File
@@ -5,6 +5,5 @@ from skimage.viewer.plugins.lineprofile import LineProfile
image = data.camera()
viewer = ImageViewer(image)
p = LineProfile(viewer)
p.show()
LineProfile(viewer)
viewer.show()