pcdshub / lightpath

LCLS Lightpath Module
https://pcdshub.github.io/lightpath
Other
4 stars 9 forks source link

Startup script #56

Closed teddyrendahl closed 6 years ago

teddyrendahl commented 6 years ago

Expected Behavior

We should be able to have a lightpath executable that takes a happi configuration file and displays a GUI.

Current Behavior

This is boilerplate code that has to be repeated in launch scripts.

from PyQt5.QtGui import QApplication
from lightpath import Controller
from lightpath.ui import LightApp

app = QApplication()
light = LightApp(Controller('path/to/db.json'))
light.exec_()
ZLLentz commented 6 years ago

+1 Jason asked for this

teddyrendahl commented 6 years ago

@ZLLentz for what application?

ZLLentz commented 6 years ago

He wanted to run the lightpath, but the only way to launch it right now is through the old skywalker stuff