fsleyes_props.widgets_point¶
This module provides the _Point() function, which is imported into
the widgets module namespace. It is separated purely to keep the
widgets module file size down.
-
fsleyes_props.widgets_point._Point(parent, hasProps, propObj, propVal, labels=None, showLimits=True, editLimits=False, mousewheel=False)¶ Creates and returns a
SliderSpinPanelallowing the user to edit the low/high values along each dimension of the givenPointproperty value.- Parameters
labels – One label for each dimension, to be shown alongside the corresponding controls.
showLimits – Show labels displaying the point limits.
editLimits – Show buttons allowing the user to edit the point limits.
mousewheel – The user can use the mouse wheel to change the point value.
See the
widgets._String()documentation for details on the other parameters.
-
fsleyes_props.widgets_point._pointBind(hasProps, propObj, propVal, slider, dim, editLimits)¶ Called by the
_Point()function.Binds the given
SliderSpinPanelto one dimension of the givenPointValueListso that changes in one are propagated to the other.- Parameters
slider – The
SliderSpinPanelinstance.dim – The 0-indexed dimension of the
Pointvalue.
See
_Point()for details on the other arguments.