Bases: taurus.qt.qtgui.container.tauruswidget.TaurusWidget
A widget that allows the user to select a list of models from a tree representing devices and attributes from a Tango server.
The user selects models and adds them to a list. Then the user should click on the update button to notify that the selection is ready.
Add given models to the selected models list
returns the list of models that have been added
Parameters: | asMimeData (:class:~`bool`) – If False (default), the return value will be a list of models. If True, the return value is a QMimeData containing at least TAURUS_MODEL_LIST_MIME_TYPE and text/plain MIME types. If only one model was selected, the mime data also contains a TAURUS_MODEL_MIME_TYPE. |
---|---|
Return type: | :class:~`list` <:class:~`str`> or :class:~`QMimeData` |
Returns: | the type of return depends on the value of asMimeData |
returns True if the selection is limited to just one model. Returns False otherwise.
Return type: | :class:~`bool` |
---|---|
Returns: |
Static method that launches a modal dialog containing a TaurusModelChooser
Parameters: |
|
---|---|
Return type: | :class:~`list,bool` or :class:~`QMimeData,bool` |
Returns: | Returns a models,ok tuple. models can be either a list of models or a QMimeData object, depending on asMimeData. ok is True if the dialog was accepted (by clicking on the “update” button) and False otherwise |
Remove the list-selected models from the list
equivalent to setListedModels([])
equivalent to setSingleModelMode(False)
adds the given list of models to the widget list
sets whether the selection should be limited to just one model (single=True) or not (single=False)
returns True if the selection is limited to just one model. Returns False otherwise.
Return type: | :class:~`bool` |
---|---|
Returns: |
for backwards compatibility with AttributeChooser only. Use setListedModels() instead