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:
Tony S Yu
2013-01-24 21:47:42 -06:00
parent f517eaa0e7
commit 230fefa748
2 changed files with 17 additions and 5 deletions
+1
View File
@@ -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)