TaurusValuesTable

Inheritance diagram of TaurusValuesTable
class TaurusValuesTable(parent=None, designMode=False, defaultWriteMode=None)[source]

A table for displaying and/or editing 1D/2D Taurus attributes

Import from taurus.qt.qtgui.table as:

from taurus.qt.qtgui.table import TaurusValuesTable
applyChanges()[source]

Writes table modifications to the device server.

askCancel()[source]

Shows a QMessageBox, asking if user wants to cancel all changes. Triggered when user clicks Cancel button.

cancelClicked()[source]

This is a SLOT that is being triggered when CANCEL button is clicked.

Note

This SLOT is called, when user does not want to apply table modifications. When no cell was modified it will not be called.

chooseModel()[source]

shows a model chooser

contextMenuEvent(event)[source]

Reimplemented from QWidget.contextMenuEvent()

getModelClass(**kwargs)[source]

see TaurusWidget.getModelClass()

classmethod getQtDesignerPluginInfo()[source]

Reimplemented from TaurusWidget.getQtDesignerPluginInfo()

getWriteMode()[source]

whether the widget is showing the read or write values

Returns:

Return type:

bool

handleEvent(evt_src, evt_type, evt_value)[source]

see TaurusWidget.handleEvent()

isReadOnly()[source]

Reimplemented from TaurusWidget.isReadOnly()

model

Returns the model name for this component.

Parameters:

key (object) – the model key. Defaults to first element of .modelKeys

Returns:

the model name.

Return type:

str

okClicked()[source]

This is a SLOT that is being triggered when ACCEPT button is clicked.

Note

This SLOT is called, when user wants to apply table modifications. When no cell was modified it will not be called. When modifications have been done, they will be writen to w_value of an attribute.

resetWriteMode()[source]

equivalent to self.setWriteMode(self.defaultWriteMode)

setModel(model, **kwargs)[source]

Reimplemented from TaurusWidget.setModel()

setModifiableByUser(modifiable)[source]

Reimplemented from TaurusWidget.setModifiableByUser()

setWriteMode(isWrite)[source]

Triggered when the read mode is changed to write mode.

Parameters:

isWrite (bool)

writeMode

whether the widget is showing the read or write values

Returns:

Return type:

bool