|
RTC Toolkit 6.0.0
|
Provides controller for the widget declared in optcmdswidget_ui. More...
Public Member Functions | |
| __init__ (self, parent=None, designMode=False) | |
| Initialises the Widget. | |
| init_gui (self) | |
| Finishes UI connections that require the Form to be loaded first. | |
| setModel (self, model) | |
| Sets the model, a URI that indicates which TaurusDevice this widget will connect to. | |
| handleEvent (self, TaurusDevice evt_src, TaurusEventType evt_type, TaurusModelValue evt_value) | |
| Updates the widgets enable/disabled property based on connection state. | |
| handle_taurusCommandButton_commandExecuted (self, object) | |
| Slot for commandExecuted signal. | |
| handle_command_button_clicked (self) | |
The slot replaces onClicked from TaurusCommandButton to invoke TaurusProtectBox decorator (instead of LocalProtectTaurusMessageBox) in case of an exception, thereby producing more understandable error messages. | |
Public Attributes | |
| handle_command_button_clicked | |
| handle_taurusCommandButton_commandExecuted | |
Static Public Attributes | |
| commandReplied = Signal(str) | |
| Used to propagate a string with the result of an RR call. | |
Provides controller for the widget declared in optcmdswidget_ui.
It is a TaurusWidget implementation, that uses a TaurusDevice model. The initializator sets all Taurus children models to the same one as this.
This means that all TaurusCommandButton have access to the methods from the TaurusDevice: aka: RTC Component.
| rtctkbasewidget.RtctkBaseWidget.__init__ | ( | self, | |
| parent = None, | |||
| designMode = False ) |
Initialises the Widget.
This widget takes its UI definition from a Qt UI file.
| [in] | parent | QWidget that will be the parent of this widget |
| [in] | designMode | Used by the Qt Designer to avoid undesirable interactions. |
| rtctkbasewidget.RtctkBaseWidget.handle_command_button_clicked | ( | self | ) |
The slot replaces onClicked from TaurusCommandButton to invoke TaurusProtectBox decorator (instead of LocalProtectTaurusMessageBox) in case of an exception, thereby producing more understandable error messages.
_onClicked() which executes the command assigned to the clicked | rtctkbasewidget.RtctkBaseWidget.handle_taurusCommandButton_commandExecuted | ( | self, | |
| object ) |
Slot for commandExecuted signal.
It gets invoked when the command defined in initTaurusCommandButton finishes execution.
| [in] | object | Python object (any) that is the return value of the command. |
| rtctkbasewidget.RtctkBaseWidget.handleEvent | ( | self, | |
| TaurusDevice | evt_src, | ||
| TaurusEventType | evt_type, | ||
| TaurusModelValue | evt_value ) |
Updates the widgets enable/disabled property based on connection state.
Override handleEvent to guard against Taurus events firing on destroyed C++ objects.
This prevents RuntimeError when a queued Taurus event reaches _setText on a C++ object that was already deleted by deleteLater or parent widget destruction.
| rtctkbasewidget.RtctkBaseWidget.init_gui | ( | self | ) |
Finishes UI connections that require the Form to be loaded first.
IMPORTANT Developer must invoke at the end of the initializator method.
| rtctkbasewidget.RtctkBaseWidget.setModel | ( | self, | |
| model ) |
Sets the model, a URI that indicates which TaurusDevice this widget will connect to.
| [in] | model | str with the URI of the TaurusDevice/RTC Component. |
|
static |
Used to propagate a string with the result of an RR call.
| rtctkbasewidget.RtctkBaseWidget.handle_command_button_clicked |
| rtctkbasewidget.RtctkBaseWidget.handle_taurusCommandButton_commandExecuted |