TaurusDevicePanel

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

Bases: taurus.qt.qtgui.container.tauruswidget.TaurusWidget

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.

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

Return type

str

Returns

file name used

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)[source]

Sets/unsets the model name for this component

Parameters

model (str) – the new model name