fsleyes_props.widgets_boolean¶
This module provides the _Boolean() function, which is imported into
the widgets module namespace. It is separated purely to keep the
widgets module file size down.
-
fsleyes_props.widgets_boolean._Boolean(parent, hasProps, propObj, propVal, icon=None, toggle=True, style=None, **kwargs)¶ Creates and returns a
wx.CheckBox, allowing the user to set the givenBooleanproperty value.- Parameters
icon –
If the
iconargument is provided, it should be a string containing the name of an image file, or a list of two image file names. In this case, case, a :class:.BitmapToggleButton` is used instead of aCheckBox.Note
If
toggleisFalse,iconsmay alternately be a sequence of four icons, with the order[selectedTrueIcon, unselectedTrueIcon, selectedFalseIcon, unselectedFalseIcon].toggle – If two icon images are provided, and the
toggleargument isTrue(the default), aBitmapToggleButtonis used. Iftoggle=False, aBitmapRadioBoxis used instead. In the latter case, thestyleargument is passed through to theBitmapRadioBox.__init__()method.style – If
toggleisFalse, this value is passed through to theBitmapRadioBox.__init__()method.
See the
widgets._String()documentation for details on the other parameters.
-
fsleyes_props.widgets_boolean._booleanCheckBox(parent)¶ Create a
wx.CheckBoxto link to theBooleanproperty.