-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmicroMS.py
More file actions
29 lines (23 loc) · 724 Bytes
/
microMS.py
File metadata and controls
29 lines (23 loc) · 724 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
#! /usr/bin/env python3
# -*- coding: utf-8 -*-
import sys
import ctypes
from PyQt5 import QtGui, QtCore, QtWidgets
from GUICanvases.microMSQTWindow import MicroMSQTWindow
def main():
'''
main method that begins execution of the QApplication
'''
qApp = QtWidgets.QApplication(sys.argv)
#set up icon
if sys.platform == 'win32':
myappid = 'uiuc.sweedlerlab.microms.v1'
ctypes.windll.shell32.SetCurrentProcessExplicitAppUserModelID(myappid)
qApp.setWindowIcon(QtGui.QIcon(r'GUICanvases/Icon/icon_sm.png'))
#start application
aw = MicroMSQTWindow()
aw.setWindowTitle("MicroMS")
aw.show()
sys.exit(qApp.exec_())
if __name__ == '__main__':
main()