forked from JorgeMaker/SimpleFOCStudio
-
Notifications
You must be signed in to change notification settings - Fork 0
/
simpleFOCStudio.py
25 lines (24 loc) · 1.03 KB
/
simpleFOCStudio.py
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
#!/usr/bin/env python
# -*- coding: utf-8 -*-
""" This module contains ans script to start the SimpleFOC ConfigTool, a GIU
application ta monitor, tune and configure BLDC motor controllers based on
SimpleFOC library.
"""
from PyQt5 import QtWidgets, QtCore
from src.gui.mainWindow import UserInteractionMainWindow
import sys
import logging
if __name__ == '__main__':
try:
QtWidgets.QApplication.setAttribute(QtCore.Qt.AA_EnableHighDpiScaling, True)
QtWidgets.QApplication.setAttribute(QtCore.Qt.AA_UseHighDpiPixmaps, True)
logging.basicConfig(filename='.SimpleFOCConfigTool.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()
sys.exit(app.exec_())
except Exception as exception:\
logging.error(exception, exc_info=True)