mirror of
https://github.com/wassname/scikit-image.git
synced 2026-09-12 12:50:49 +08:00
ENH: Improve usability of watershed_demo.
* Replace 0 label with 'Erase' * Use OK button instead of enter key to calculate watershed.
This commit is contained in:
@@ -21,6 +21,7 @@ class LabelPainter(Plugin):
|
||||
self._radius_widget = Slider('radius', low=1, high=max_radius,
|
||||
value=5, value_type='int', ptype='plugin')
|
||||
labels = [str(i) for i in range(6)]
|
||||
labels[0] = 'Erase'
|
||||
self._label_widget = ComboBox('label', labels, ptype='plugin')
|
||||
self.add_widget(self._radius_widget)
|
||||
self.add_widget(self._label_widget)
|
||||
|
||||
Reference in New Issue
Block a user