-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.py
More file actions
32 lines (23 loc) · 758 Bytes
/
main.py
File metadata and controls
32 lines (23 loc) · 758 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
"""
Author: Raphael.
"""
import sys, os
from PyQt4 import QtCore, QtGui
from UI_Widgets.Ui_MainWindow import Ui_MainWindow
from __init__ import __version__
class QTModel(QtGui.QMainWindow):
def __init__(self, parent=None):
super(QTModel, self).__init__(parent)
self.ui = Ui_MainWindow()
self.setWindowIcon(QtGui.QIcon('LayoutCreator.ico'))
self.ui.setupUi(self, version=__version__)
if os.path.isfile("UI_Widgets/StyleSheet/style.css"):
self.setStyleSheet(open("UI_Widgets/StyleSheet/style.css").read())
def main():
global app
app = QtGui.QApplication(sys.argv)
form = QTModel()
form.show()
sys.exit(app.exec_())
if __name__ == "__main__":
main()