Source code for siriushla.as_ps_control.control_widget.LensControlWidget

"""Define widget for controlling slow correctors."""
from .BasePSControlWidget import BasePSControlWidget


[docs] class LILensControlWidget(BasePSControlWidget): """Linac Lens control widget.""" def _getFilter(self, subsection=None): return {"sec": "LI", "dev": "Lens.*"} def _hasTrimButton(self): return False def _hasScrollArea(self): return True def _getGroups(self): return [('Lens', '-Lens-'), ('Lens Rev', '-LensRev')]
[docs] class ITLensControlWidget(BasePSControlWidget): """Injector Test Lens control widget.""" def _getFilter(self, subsection=None): return {"sec": "IT", "dev": "Lens"} def _hasTrimButton(self): return False def _hasScrollArea(self): return True def _getGroups(self): return [('Lens', '-Lens-'), ]