TaurusDevicePanel

Inheritance diagram of TaurusDevicePanel
class TaurusDevicePanel(parent=None, model=None, palette=None, bound=True)[source]

TaurusDevPanel is a Taurus Application inspired in Jive and Atk Panel.

It Provides a Device selector and a panel for displaying information from the selected device.

Import from taurus.qt.qtgui.panel as:

from taurus.qt.qtgui.panel import TaurusDevicePanel
READ_ONLY = False
detach()[source]
duplicate()[source]
classmethod getAttributeFilters()[source]
classmethod getCommandFilters()[source]
classmethod getIconMap()[source]
get_attrs_form(device, form=None, filters=None, parent=None)[source]
get_comms_form(device, form=None, parent=None)[source]
loadConfigFile(ifile=None)[source]

Reads a file stored by saveConfig() and applies the settings

Parameters

ifile (file or string) – file or filename from where to read the configuration

Returns

file name used

Return type

str

classmethod setAttributeFilters(filters)[source]

It will set the attribute filters filters will be like: {device_regexp:[attribute_regexps]} example: {‘.*/VGCT-.*’: [‘ChannelState’,’p[0-9]’]}

classmethod setCommandFilters(filters)[source]

It will set the command filters filters will be like: {device_regexp:[command_regexps]} example:

{'.*/IPCT-.*': (
    ('setmode',('SERIAL','LOCAL','STEP','FIXED','START','PROTECT')),
    ('onhv1',()), ('offhv1',()), ('onhv2',()), ('offhv2',()),
    ('sendcommand',())
    ),
}
classmethod setIconMap(filters)[source]

A dictionary like {device_regexp:pixmap_url}

setModel(model, pixmap=None, **kwargs)[source]

Sets/unsets the model name for the given key. If key is MLIST, a model is set for each name in the model sequence, new model keys are automatically added to the object’s modelList attribute and the corresponding models are attached using those keys. The new keys are of the form (MLIST, i) where i is the index of the corresponding model name in the model sequence.

Parameters
  • model (str (or sequence of str if key is MLIST)) – the new model name. If key is MLIST, model is expected to be a sequence of model names.

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