Change default Slider update_on value to 'release'

Image filtering is usually slow, so updating on move was usually a bad idea.
This commit is contained in:
tonysyu
2013-06-26 11:23:12 -05:00
parent ed7c75d4c6
commit c826935d9e
5 changed files with 9 additions and 9 deletions
+3 -3
View File
@@ -12,9 +12,9 @@ image = data.camera()
# You can create a UI for a filter just by passing a filter function...
plugin = OverlayPlugin(image_filter=canny)
# ... and adding widgets to adjust parameter values.
plugin += Slider('sigma', 0, 5, update_on='release')
plugin += Slider('low threshold', 0, 255, update_on='release')
plugin += Slider('high threshold', 0, 255, update_on='release')
plugin += Slider('sigma', 0, 5)
plugin += Slider('low threshold', 0, 255)
plugin += Slider('high threshold', 0, 255)
# ... and we can also add buttons to save the overlay:
plugin += SaveButtons(name='Save overlay to:')