mirror of
https://github.com/wassname/scikit-image.git
synced 2026-10-29 13:30:24 +08:00
Update the paint tool shape with the viewer image changes
This commit is contained in:
1 parent
73bf701b5c
commit
85537e3f85
1 file changed
+4
@@ -43,6 +43,10 @@ class LabelPainter(Plugin):
|
||||
self.paint_tool.label = self._label_widget.index = 1
|
||||
self.artists.append(self.paint_tool)
|
||||
|
||||
def _on_new_image(self, image):
|
||||
"""Update plugin for new images."""
|
||||
self.paint_tool.shape = image.shape
|
||||
|
||||
def on_enter(self, overlay):
|
||||
pass
|
||||
|
||||
|
||||
Reference in new issue
Block a user