(self, widget, value, label, cb_name, stateWhenDisabled=None)
Adds a :obj:`.QCheckBox` to ``widget``.
            When the checkbox is toggled, the attribute ``value`` of the plot object is set to
            the checkbox' check state, and the callback ``cb_name`` is called.
Adds a :obj:`.QCheckBox` to ``widget``.
            When the checkbox is toggled, the attribute ``value`` of the plot object is set to
            the checkbox' check state, and the callback ``cb_name`` is called.
Adds a : obj : . QCheckBox to widget . When the checkbox is toggled the attribute value of the plot object is set to the checkbox check state and the callback cb_name is called .
def _check_box(self, widget, value, label, cb_name, stateWhenDisabled=None):
        '''
            Adds a :obj:`.QCheckBox` to ``widget``.
            When the checkbox is toggled, the attribute ``value`` of the plot object is set to
            the checkbox' check state, and the callback ``cb_name`` is called.
        '''
        args = dict(master=self._plot, value=value, label=label,
                    callback=self._get_callback(cb_name, self._plot),
                    stateWhenDisabled=stateWhenDisabled)
        if isinstance(widget.layout(), QGridLayout):
            widget = widget.layout()
        if isinstance(widget, QGridLayout):
            checkbox = gui.checkBox(None, **args)
            widget.addWidget(checkbox, widget.rowCount(), 1)
            return checkbox
        else:
            return gui.checkBox(widget, **args)
def _check_box ( self , widget , value , label , cb_name , stateWhenDisabled = None ) : args = dict ( master = self . _plot , value = value , label = label , callback = self . _get_callback ( cb_name , self . _plot ) , stateWhenDisabled = stateWhenDisabled ) if isinstance ( widget . layout ( ) , QGridLayout ) : widget = widget . layout ( ) if isinstance ( widget , QGridLayout ) : checkbox = gui . checkBox ( None , * * args ) widget . addWidget ( checkbox , widget . rowCount ( ) , 1 ) return checkbox else : return gui . checkBox ( widget , * * args )