PyDMCheckbox

class pydm.widgets.checkbox.PyDMCheckbox(parent=None, init_channel=None)[source]

Bases: QCheckBox, PyDMWritableWidget

A QCheckbox with support for Channels and more from PyDM

Parameters:
  • parent (QWidget) – The parent widget for the Label

  • init_channel (str, optional) – The channel to be used by the widget.

send_value(checked)[source]

Method that emit the signal to notify the Channel that a new value was written at the widget.

Parameters:

checked (bool) – True in case the checkbox was checked, False otherwise.

value_changed(new_val)[source]

Callback invoked when the Channel value is changed. Sets the checkbox checked or not based on the new value.

Parameters:

new_val (int) – The new value from the channel.

Note

See QCheckBox Documentation for all inherited properties and methods.