PyDMWaveformTable

class pydm.widgets.waveformtable.PyDMWaveformTable(parent=None, init_channel=None)[source]

Bases: QTableWidget, PyDMWritableWidget

A QTableWidget with support for Channels and more from PyDM.

Values of the array are displayed in the selected number of columns. The number of rows is determined by the size of the waveform. It is possible to define the labels of each row and column.

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

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

check_enable_state()[source]

For PyDMWaveformTable, we want to make the individual cells editable when we have write access.

columnHeaderLabels

Return the list of labels for the columns of the Table.

Return type:

list of strings

eventFilter(self, object: Optional[QObject], event: Optional[QEvent]) bool[source]
rowHeaderLabels

Return the list of labels for the rows of the Table.

Return type:

list of strings

send_waveform(row, column)[source]

Update Channel value when cell value is changed.

Parameters:
  • row (int) – Row of the changed cell.

  • column (int) – Column of the changed cell.

value_changed(new_waveform)[source]

Callback invoked when the Channel value is changed.

Parameters:

new_waveform (np.ndarray) – The new waveform value from the channel.

Note

See QTableWidget Documentation for all inherited properties and methods.