-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.py
More file actions
35 lines (22 loc) · 761 Bytes
/
main.py
File metadata and controls
35 lines (22 loc) · 761 Bytes
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
34
35
import logging
from PyQt6.QtWidgets import QApplication
from main_window import MainWindow
import sys
SINGLA_GUI_VERSION = "1.0"
logging.basicConfig(format="%(threadName)s:%(message)s")
logging.getLogger().setLevel(logging.INFO)
def main():
"""
The main function for the app. Creates an QApplication and shows the main window.
"""
app = QApplication(sys.argv)
main_window = MainWindow()
app.aboutToQuit.connect(main_window.control.shutdown)
main_window.show()
app.exec()
def get_about_info():
return f"""Singla GUI
Version {SINGLA_GUI_VERSION}
A graphical user interface that synchronizes measurement operations on the TEM microscope with the SINGLA detector"""
if __name__ == '__main__':
main()