blob: d4979b67e4077444f782d0335faabd77b71226c0 (
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
|
"""
Lab DAQ System - Main Entry Point
Run this file to launch the application.
"""
import sys
from PyQt6.QtWidgets import QApplication
from PyQt6.QtCore import Qt
from ui.main_window import MainWindow
def main():
app = QApplication(sys.argv)
app.setApplicationName("LabDAQ")
app.setOrganizationName("Lab Instruments")
app.setAttribute(Qt.ApplicationAttribute.AA_UseHighDpiPixmaps)
# Load global stylesheet
with open("ui/style.qss", "r") as f:
app.setStyleSheet(f.read())
window = MainWindow()
window.show()
sys.exit(app.exec())
if __name__ == "__main__":
main()
|