blob: b023b990dbd1c360aa197cad353543abe9110ed0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
"""
main.py — LabDAQ entry point.
Run:
python main.py
Requirements:
pip install PyQt6 pyqtgraph numpy pyserial
"""
import sys, os
sys.path.insert(0, os.path.dirname(os.path.abspath(__file__)))
from PyQt6.QtWidgets import QApplication
from ui.main_window import MainWindow
def main():
app = QApplication(sys.argv)
app.setApplicationName("LabDAQ")
qss = os.path.join(os.path.dirname(os.path.abspath(__file__)), "ui", "style_dark.qss")
if os.path.exists(qss):
with open(qss) as f:
app.setStyleSheet(f.read())
win = MainWindow()
win.show()
sys.exit(app.exec())
if __name__ == "__main__":
main()
|