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.

eventFilter(self, object: Optional[QObject], event: Optional[QEvent]) bool[source]
readColumnHeaderLabels() list[str][source]

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

Return type:

list[str]

readRowHeaderLabels() list[str][source]

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

Return type:

list[str]

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.

setColumnHeaderLabels(new_labels) None[source]

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

If new_labels is empty the column numbers will be used.

Parameters:

new_labels (list of strings) –

setRowHeaderLabels(new_labels) None[source]

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

If new_labels is empty the row numbers will be used.

Parameters:

new_labels (list of strings) –

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.