-
Notifications
You must be signed in to change notification settings - Fork 2
/
gsySymmAbout.py
75 lines (63 loc) · 3.17 KB
/
gsySymmAbout.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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'about.ui'
#
# Created by: PyQt5 UI code generator 5.6
#
# WARNING! All changes made in this file will be lost!
"""
The "About" window.
Module Name : gsySymmAbout
Author : 高斯羽 博士 (Dr. GAO, Siyu)
Version : 0.1.0
Last Modified : 2018-01-03
"""
import gsySymmIcon
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_About(object):
def setupUi(self, About):
About.setObjectName("About")
About.resize(525, 287)
self.centralwidget = QtWidgets.QWidget(About)
self.centralwidget.setObjectName("centralwidget")
self.btn_close = QtWidgets.QPushButton(self.centralwidget)
self.btn_close.setGeometry(QtCore.QRect(420, 230, 93, 28))
self.btn_close.setObjectName("btn_close")
self.widget = QtWidgets.QWidget(self.centralwidget)
self.widget.setGeometry(QtCore.QRect(10, 10, 496, 202))
self.widget.setObjectName("widget")
self.horizontalLayout = QtWidgets.QHBoxLayout(self.widget)
self.horizontalLayout.setContentsMargins(0, 0, 0, 0)
self.horizontalLayout.setObjectName("horizontalLayout")
self.lbl_gao = QtWidgets.QLabel(self.widget)
self.lbl_gao.setObjectName("lbl_gao")
self.horizontalLayout.addWidget(self.lbl_gao)
self.lbl_text = QtWidgets.QLabel(self.widget)
self.lbl_text.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignTop)
self.lbl_text.setWordWrap(True)
self.lbl_text.setObjectName("lbl_text")
self.horizontalLayout.addWidget(self.lbl_text)
About.setCentralWidget(self.centralwidget)
self.statusbar = QtWidgets.QStatusBar(About)
self.statusbar.setObjectName("statusbar")
About.setStatusBar(self.statusbar)
self.actionExit = QtWidgets.QAction(About)
self.actionExit.setObjectName("actionExit")
self.retranslateUi(About)
self.btn_close.clicked.connect(About.close)
# QtCore.QMetaObject.connectSlotsByName(About)
def retranslateUi(self, About):
_translate = QtCore.QCoreApplication.translate
About.setWindowTitle(_translate("About", "About Symmetrical Components"))
self.btn_close.setText(_translate("About", "Close"))
self.lbl_gao.setText(_translate("About", "<html><head/><body><p><img src=\":/gao/gao.png\" width=\"100\"/></p></body></html>"))
self.lbl_text.setText(_translate("About", "<html><head/><body><p><span style=\" font-size:14pt; font-weight:600;\">About Symmtrical Components</span></p><p><br/>Version 0.1.0.</p><p>Symmetrical Components is a program designed to visualise all three-phase symmetrical components (Fortescue, Clarke and Park).</p><p>This program is licensed under Apache 2.0. </p><p>Details of this program can be found in the documentation.</p><p>This program is developed by 高斯羽 博士(Dr. GAO, Siyu).</p></body></html>"))
self.actionExit.setText(_translate("About", "exit"))
# import gsySymmIcon
if __name__ == "__main__":
import sys
app = QtWidgets.QApplication(sys.argv)
About = QtWidgets.QMainWindow()
ui = Ui_About()
ui.setupUi(About)
About.show()
sys.exit(app.exec_())