wip simulated mode
This commit is contained in:
10
zoom.py
10
zoom.py
@@ -108,7 +108,7 @@ class Zoom(QGroupBox, Ui_Zoom):
|
||||
lbox.layout().setSpacing(0)
|
||||
lbox.layout().setContentsMargins(0, 0, 0, 0)
|
||||
self._top_grid.layout().addWidget(lbox)
|
||||
#self.blgt_button = QPushButton(qtawesome.icon("material.lightbulb_outline"), "Backlight")
|
||||
#TODO: self.blgt_button = QPushButton(qtawesome.icon("material.lightbulb_outline"), "Backlight")
|
||||
self.blgt_button = QPushButton( "Backlight")
|
||||
self.blgt_button.clicked.connect(self.toggle_backlight)
|
||||
|
||||
@@ -329,17 +329,21 @@ if __name__ == "__main__":
|
||||
parser.add_argument("--sim", "-s", help="simulate all devices", action='store_true')
|
||||
args = parser.parse_args()
|
||||
|
||||
|
||||
import sys
|
||||
import backlight
|
||||
import illumination
|
||||
import camera
|
||||
|
||||
_log.info('Start')
|
||||
_log.info('Arguments:{}'.format(args.__dict__))
|
||||
os.environ['EPICS_CA_ADDR_LIST'] = '129.129.244.255 sf-saresc-cagw.psi.ch:5062 sf-saresc-cagw.psi.ch:5066'
|
||||
app = QApplication(sys.argv)
|
||||
from app_config import settings, appsconf
|
||||
|
||||
#from PyQt5 import QtGui
|
||||
#qtawesome.load_font("material","MaterialIcons-Regular.ttf","MaterialIcons-Regular.json","fonts/",)
|
||||
#QtGui.QFontDatabase.addApplicationFont("fonts/Inconsolata-Bold.ttf")
|
||||
#QtGui.QFontDatabase.addApplicationFont("fonts/Baloo-Regular.ttf")
|
||||
|
||||
if args.sim:
|
||||
app._backlight = backlight.Backlight(None)
|
||||
app._illumination = illumination.IlluminationControl(None)
|
||||
|
||||
Reference in New Issue
Block a user