From 9ac42728c6d542570d7cca28d848b660fe0c020c Mon Sep 17 00:00:00 2001 From: Tony S Yu Date: Fri, 3 Aug 2012 20:47:42 -0400 Subject: [PATCH] DOC: Clean up docstring for Slider --- skimage/viewer/widgets/core.py | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/skimage/viewer/widgets/core.py b/skimage/viewer/widgets/core.py index 7e1b6e9e..27cb187f 100644 --- a/skimage/viewer/widgets/core.py +++ b/skimage/viewer/widgets/core.py @@ -11,8 +11,8 @@ parameter type specified by its `ptype` attribute, which can be: 'arg' : positional argument passed to Plugin's `filter_image` method. 'kwarg' : keyword argument passed to Plugin's `filter_image` method. - 'plugin' : attribute of Plugin. You'll probably need to make the attribute - a class property that updates the display. + 'plugin' : attribute of Plugin. You'll probably need to add a class + property of the same name that updates the display. """ from PyQt4.QtCore import Qt @@ -41,16 +41,7 @@ class BaseWidget(QtGui.QWidget): class Slider(BaseWidget): - """Slider widget. - - 'name' attribute and calls a callback - with 'name' as an argument to the registered callback. - - This allows you to create large groups of sliders in a loop, - but still keep track of the individual events - - It also prints a label below the slider. - + """Slider widget for adjusting numeric parameters. Parameters ----------