Bases: taurus.qt.qtgui.container.tauruswidget.TaurusWidget
A form that shows commands available for a Device Server
extending TaurusBaseWidget.applyConfig() to restore the splitter config
Parameters: | configdict (:class:~`dict`) – |
---|
See also
TaurusBaseWidget.applyConfig(), createConfig()
extending TaurusBaseWidget.createConfig() :type alllowUnpickable: :class:~`bool` :param alllowUnpickable:
Return type: | :class:~`dict` <:class:~`str`, :class:~`object`> |
---|---|
Returns: | configurations (which can be loaded with applyConfig()). |
see TaurusBaseComponent.getModelClass()
returns the splitter that separates the command buttons area from the output area
Return type: | :class:~`QSplitter` |
---|---|
Returns: |
returns the filters used in deciding which commands are displayed
Return type: | :class:~`sequence` <:class:~`callable`> |
---|---|
Returns: | a sequence of filters |
sets the values that will appear by default in the parameters combo box, the command combo box for the command will be editable only if the first parameter is an empty string
Parameters: | params (:class:~`dict` <:class:~`str`, :class:~`list`>) – { ‘cmd_name’: [‘parameters string 1’, ‘parameters string 2’ ] } |
---|
sets the expert view mode
Parameters: | expert (:class:~`bool`) – If expert is True, commands won’t be filtered. If it is False, commands with display level Expert won’t be shown |
---|
sets the method used to sort the commands (cmd_name by default)
Parameters: | sortkey (:class:~`callable`) – a function that takes a CommandInfo as argument and returns a key to use for sorting purposes (e.g. the default sortKey is lambda x:x.cmd_name) |
---|
sets the filters to be applied when displaying the commands
Parameters: | filterlist (:class:~`sequence` <:class:~`callable`>) – a sequence of command filters. All filters will be applied to each command to decide whether to display it or not. for a command to be plotted, the following condition must be true for all filters: bool(filter(command))==True |
---|