PyDMLabel

class pydm.widgets.label.PyDMLabel(parent=None, init_channel=None)[source]

Bases: QLabel, TextFormatter, PyDMWidget, DisplayFormat

check_enable_state()[source]

If the channel this label is connected to becomes disconnected, display only the name of the channel.

value_changed(new_value)[source]

Callback invoked when the Channel value is changed. Sets the value of new_value accordingly at the Label.

Parameters:

new_value (str, int, float, bool or np.ndarray) – The new value from the channel. The type depends on the channel.

Note

See QLabel Documentation for all inherited properties and methods.