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
SliderSpinPanel
allowing the user to edit the low/high values along each dimension of the givenPoint
property 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
SliderSpinPanel
to one dimension of the givenPointValueList
so that changes in one are propagated to the other.- Parameters
slider – The
SliderSpinPanel
instance.dim – The 0-indexed dimension of the
Point
value.
See
_Point()
for details on the other arguments.