-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.py
23 lines (22 loc) · 909 Bytes
/
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
from PyQt5 import QtWidgets, QtCore
from src.gui.mainWindow import UserInteractionMainWindow
import sys
import logging
from threading import *
if __name__ == '__main__':
try:
QtWidgets.QApplication.setAttribute(QtCore.Qt.AA_EnableHighDpiScaling, True)
QtWidgets.QApplication.setAttribute(QtCore.Qt.AA_UseHighDpiPixmaps, True)
logging.basicConfig(filename='.Graphs.log', filemode='w',
format='%(name)s - %(levelname)s - %(message)s')
app = QtWidgets.QApplication(sys.argv)
mainWindow = QtWidgets.QMainWindow()
userInteractionMainWindow = UserInteractionMainWindow()
userInteractionMainWindow.setupUi(mainWindow)
mainWindow.show()
app.exec_()
for thread in enumerate():
print(thread.name)
sys.exit()
except Exception as exception:\
logging.error(exception, exc_info=True)