vacca.panel module

Custom widgets for panels, forms and buttons in Vacca

Classes

VaccaFinder

class vacca.panel.VaccaFinder(parent=None, domains=None, regexp='*pnv-*', USE_SCROLL=True, USE_TREND=False)[source]

Convenience class to deal with alternatives to ArchivingBrowser when not available in the PYTHONPATH

VaccaSearchForm

class vacca.panel.VaccaSearchForm(preffix='', suffix='', labels=False, parent=None)[source]

Form with an embedded search bar that can be used to set the models

The preffix and suffix arguments can be used to limit the search

VaccaDocker

class vacca.panel.VaccaDocker(*args)[source]
static getDefaultIcon()[source]
Returns:The Default Icon Path.
static getPanelDescription(name='VaccaDocker', model='')[source]
Parameters:
  • name – Name for the Panel
  • model – Model for the panel
Returns:

VaccaSplash

class vacca.panel.VaccaSplash(timeout=10000)[source]

SimplePanel

class vacca.panel.SimplePanel(parent=None, designMode=False)[source]

VaccaAction

class vacca.panel.VaccaAction(parent=None, designMode=False, default=None)[source]

DomainButton

class vacca.panel.DomainButton(parent=None)[source]

VaccaPanel

class vacca.panel.VaccaPanel(parent=None, model=None, filters=[])[source]
Parameters:
  • parent
  • model – a device name or an state attribute
  • palette
  • bound
  • filters
Returns:

It is a class that inherits from TaurusDevicePanel and Dropable module from fandango.

In Init, the class VaccaPanel check if exist any shareDataManager to
subscribe in it.

This Widget shows the device Commands and Attributes, it is listening the shareDataManager to show the device selected information.

The title of this Widget can be draggable.

This class has the follow functionalities:

  • Title is draggable.
  • Is connected to shareDataManager to share information in the GUI.
classmethod getAttributeFilters(klass, dev_class=None)[source]

TaurusDevicePanel filters are fixed to work by device name. But, if AttributeFilters is declared as class property, it will override them.

get{Property}(klass,dev_class) will update it from Tango DB and return the matching values. set{Property}(dict) will update the parent TaurusDevicePanel dictionary, not the DB

classmethod getCommandFilters(klass, dev_class=None)[source]

get{Property}(klass,dev_class) will update it from Tango DB and return the matching values. set{Property}(dict) will update the parent TaurusDevicePanel dictionary, not the DB

static getDefaultIcon()[source]
Returns:The Default Icon Path.
static getPanelDescription(name='VaccaDevicePanel', model='')[source]
Parameters:
  • name – Name for the Panel
  • model – Model for the panel
Returns:

setModel(model, pixmap=None)[source]

Set Model is the callback used in shareDataManager to manage device selections.

Parameters:
  • model – Model to VaccaPanel
  • pixmap
Returns:

Functions

main

vacca.panel.main(args)[source]

get_eqtype

vacca.panel.get_eqtype(dev)[source]

It extracts the eqtype from a device name like domain/family/eqtype-serial

get_dev_attrs

vacca.panel.get_dev_attrs(dev)[source]

configure_form

vacca.panel.configure_form(dev, form=None)[source]

Creates a TauForm and configures its Status fields

init_qt

vacca.panel.init_qt()[source]

class vacca.panel.DomainButton(parent=None)[source]

Bases: PyQt4.QtGui.QToolButton

setLabel(txt)[source]
setModel(model, action)[source]
show(args=None)[source]
class vacca.panel.SimplePanel(parent=None, designMode=False)[source]

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

getInnerPanel()[source]
getModel()[source]
setModel(model)[source]
class vacca.panel.VaccaAction(parent=None, designMode=False, default=None)[source]

Bases: PyQt4.QtGui.QToolButton, taurus.qt.qtgui.base.taurusbase.TaurusBaseWidget

kill()[source]
setCommand(cmd)[source]
setModel(model)[source]
show(args=None)[source]
class vacca.panel.VaccaDocker(*args)[source]

Bases: PyQt4.QtGui.QMainWindow

static getDefaultIcon()[source]
Returns:The Default Icon Path.
static getPanelDescription(name='VaccaDocker', model='')[source]
Parameters:
  • name – Name for the Panel
  • model – Model for the panel
Returns:

class vacca.panel.VaccaFinder(parent=None, domains=None, regexp='*pnv-*', USE_SCROLL=True, USE_TREND=False)[source]

Bases: PyTangoArchiving.widget.ArchivingBrowser.ArchivingBrowser

Convenience class to deal with alternatives to ArchivingBrowser when not available in the PYTHONPATH

class vacca.panel.VaccaPanel(parent=None, model=None, filters=[])[source]

Bases: fandango.qt.DropableQtKlass

Parameters:
  • parent
  • model – a device name or an state attribute
  • palette
  • bound
  • filters
Returns:

It is a class that inherits from TaurusDevicePanel and Dropable module from fandango.

In Init, the class VaccaPanel check if exist any shareDataManager to
subscribe in it.

This Widget shows the device Commands and Attributes, it is listening the shareDataManager to show the device selected information.

The title of this Widget can be draggable.

This class has the follow functionalities:

  • Title is draggable.
  • Is connected to shareDataManager to share information in the GUI.
classmethod getAttributeFilters(klass, dev_class=None)[source]

TaurusDevicePanel filters are fixed to work by device name. But, if AttributeFilters is declared as class property, it will override them.

get{Property}(klass,dev_class) will update it from Tango DB and return the matching values. set{Property}(dict) will update the parent TaurusDevicePanel dictionary, not the DB

classmethod getCommandFilters(klass, dev_class=None)[source]

get{Property}(klass,dev_class) will update it from Tango DB and return the matching values. set{Property}(dict) will update the parent TaurusDevicePanel dictionary, not the DB

static getDefaultIcon()[source]
Returns:The Default Icon Path.
classmethod getIconMap(klass, dev_class=None)[source]
static getPanelDescription(name='VaccaDevicePanel', model='')[source]
Parameters:
  • name – Name for the Panel
  • model – Model for the panel
Returns:

get_comms_form(device, form=None, parent=None)[source]
setModel(model, pixmap=None)[source]

Set Model is the callback used in shareDataManager to manage device selections.

Parameters:
  • model – Model to VaccaPanel
  • pixmap
Returns:

class vacca.panel.VaccaSearchForm(preffix='', suffix='', labels=False, parent=None)[source]

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

Form with an embedded search bar that can be used to set the models

The preffix and suffix arguments can be used to limit the search

class vacca.panel.VaccaSplash(timeout=10000)[source]

Bases: PyQt4.QtGui.QSplashScreen, fandango.objects.Singleton

vacca.panel.configure_form(dev, form=None)[source]

Creates a TauForm and configures its Status fields

vacca.panel.get_dev_attrs(dev)[source]
vacca.panel.get_eqtype(dev)[source]

It extracts the eqtype from a device name like domain/family/eqtype-serial

vacca.panel.init_qt()[source]
vacca.panel.main(args)[source]