Source code for siriushla.common.afc_acq_core.base

"""Base."""

from qtpy.QtWidgets import QWidget

from siriuspy.namesys import SiriusPVName as _PVName


[docs] class BaseWidget(QWidget): def __init__(self, parent=None, prefix='', device=''): super().__init__(parent) self.prefix = prefix self.device = _PVName(device) self.sec = self.device.sec if self.device.sec != 'IA' else 'SI' self.setObjectName(self.sec+'App')
[docs] def get_pvname(self, propty): addr = self.device.substitute( prefix=self.prefix, propty=propty) return addr