-
Notifications
You must be signed in to change notification settings - Fork 0
/
gui.py
131 lines (125 loc) · 7.07 KB
/
gui.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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'gui.ui'
#
# Created by: PyQt5 UI code generator 5.11.3
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_MainWindow(object):
def setupUi(self, MainWindow):
MainWindow.setObjectName("MainWindow")
MainWindow.setWindowModality(QtCore.Qt.ApplicationModal)
MainWindow.setEnabled(True)
MainWindow.resize(483, 558)
MainWindow.setMinimumSize(QtCore.QSize(483, 558))
MainWindow.setAcceptDrops(True)
icon = QtGui.QIcon()
icon.addPixmap(QtGui.QPixmap("2.jpg"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
MainWindow.setWindowIcon(icon)
self.centralwidget = QtWidgets.QWidget(MainWindow)
self.centralwidget.setObjectName("centralwidget")
self.label = QtWidgets.QLabel(self.centralwidget)
self.label.setGeometry(QtCore.QRect(40, 250, 54, 12))
self.label.setObjectName("label")
self.label_2 = QtWidgets.QLabel(self.centralwidget)
self.label_2.setGeometry(QtCore.QRect(40, 310, 54, 12))
self.label_2.setObjectName("label_2")
self.doubleSpinBox = QtWidgets.QDoubleSpinBox(self.centralwidget)
self.doubleSpinBox.setGeometry(QtCore.QRect(140, 250, 62, 22))
self.doubleSpinBox.setObjectName("doubleSpinBox")
self.doubleSpinBox_2 = QtWidgets.QDoubleSpinBox(self.centralwidget)
self.doubleSpinBox_2.setGeometry(QtCore.QRect(140, 300, 62, 22))
self.doubleSpinBox_2.setObjectName("doubleSpinBox_2")
self.pushButton = QtWidgets.QPushButton(self.centralwidget)
self.pushButton.setGeometry(QtCore.QRect(400, 460, 75, 23))
self.pushButton.setObjectName("pushButton")
self.layoutWidget = QtWidgets.QWidget(self.centralwidget)
self.layoutWidget.setGeometry(QtCore.QRect(10, 150, 431, 61))
self.layoutWidget.setObjectName("layoutWidget")
self.horizontalLayout_2 = QtWidgets.QHBoxLayout(self.layoutWidget)
self.horizontalLayout_2.setContentsMargins(0, 0, 0, 0)
self.horizontalLayout_2.setObjectName("horizontalLayout_2")
self.lineEdit_2 = QtWidgets.QLineEdit(self.layoutWidget)
self.lineEdit_2.setObjectName("lineEdit_2")
self.horizontalLayout_2.addWidget(self.lineEdit_2)
spacerItem = QtWidgets.QSpacerItem(0, 0, QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Minimum)
self.horizontalLayout_2.addItem(spacerItem)
self.toolButton_2 = QtWidgets.QToolButton(self.layoutWidget)
self.toolButton_2.setObjectName("toolButton_2")
self.horizontalLayout_2.addWidget(self.toolButton_2)
self.layoutWidget1 = QtWidgets.QWidget(self.centralwidget)
self.layoutWidget1.setGeometry(QtCore.QRect(10, 70, 431, 61))
self.layoutWidget1.setObjectName("layoutWidget1")
self.horizontalLayout = QtWidgets.QHBoxLayout(self.layoutWidget1)
self.horizontalLayout.setContentsMargins(0, 0, 0, 0)
self.horizontalLayout.setObjectName("horizontalLayout")
self.lineEdit = QtWidgets.QLineEdit(self.layoutWidget1)
self.lineEdit.setObjectName("lineEdit")
self.horizontalLayout.addWidget(self.lineEdit)
spacerItem1 = QtWidgets.QSpacerItem(0, 0, QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Minimum)
self.horizontalLayout.addItem(spacerItem1)
self.toolButton = QtWidgets.QToolButton(self.layoutWidget1)
self.toolButton.setObjectName("toolButton")
self.horizontalLayout.addWidget(self.toolButton)
MainWindow.setCentralWidget(self.centralwidget)
self.statusbar = QtWidgets.QStatusBar(MainWindow)
self.statusbar.setObjectName("statusbar")
MainWindow.setStatusBar(self.statusbar)
self.menuBar = QtWidgets.QMenuBar(MainWindow)
self.menuBar.setGeometry(QtCore.QRect(0, 0, 483, 23))
self.menuBar.setObjectName("menuBar")
self.menu_F = QtWidgets.QMenu(self.menuBar)
self.menu_F.setObjectName("menu_F")
self.menu_E = QtWidgets.QMenu(self.menuBar)
self.menu_E.setObjectName("menu_E")
MainWindow.setMenuBar(self.menuBar)
self.toolBar = QtWidgets.QToolBar(MainWindow)
self.toolBar.setObjectName("toolBar")
MainWindow.addToolBar(QtCore.Qt.TopToolBarArea, self.toolBar)
self.toolBar_2 = QtWidgets.QToolBar(MainWindow)
self.toolBar_2.setObjectName("toolBar_2")
MainWindow.addToolBar(QtCore.Qt.TopToolBarArea, self.toolBar_2)
self.fileOpenAction = QtWidgets.QAction(MainWindow)
self.fileOpenAction.setCheckable(True)
self.fileOpenAction.setObjectName("fileOpenAction")
self.fileNewAction = QtWidgets.QAction(MainWindow)
self.fileNewAction.setObjectName("fileNewAction")
self.fileCloseAction = QtWidgets.QAction(MainWindow)
self.fileCloseAction.setObjectName("fileCloseAction")
self.addWinAction = QtWidgets.QAction(MainWindow)
self.addWinAction.setObjectName("addWinAction")
self.menu_F.addAction(self.fileOpenAction)
self.menu_F.addAction(self.fileNewAction)
self.menu_F.addAction(self.fileCloseAction)
self.menu_F.addAction(self.addWinAction)
self.menuBar.addAction(self.menu_F.menuAction())
self.menuBar.addAction(self.menu_E.menuAction())
self.toolBar.addAction(self.fileOpenAction)
self.toolBar.addAction(self.fileNewAction)
self.toolBar.addAction(self.fileCloseAction)
self.toolBar.addSeparator()
self.toolBar_2.addAction(self.fileOpenAction)
self.label_2.setBuddy(self.doubleSpinBox_2)
self.retranslateUi(MainWindow)
self.pushButton.clicked.connect(MainWindow.close)
QtCore.QMetaObject.connectSlotsByName(MainWindow)
MainWindow.setTabOrder(self.lineEdit, self.toolButton)
def retranslateUi(self, MainWindow):
_translate = QtCore.QCoreApplication.translate
MainWindow.setWindowTitle(_translate("MainWindow", "UEG"))
self.label.setText(_translate("MainWindow", "TextLabel"))
self.label_2.setText(_translate("MainWindow", "TextLabel"))
self.pushButton.setText(_translate("MainWindow", "关闭"))
self.toolButton_2.setText(_translate("MainWindow", "..."))
self.toolButton.setText(_translate("MainWindow", "..."))
self.menu_F.setTitle(_translate("MainWindow", "文件(&F)"))
self.menu_E.setTitle(_translate("MainWindow", "编辑(&E)"))
self.toolBar.setWindowTitle(_translate("MainWindow", "toolBar"))
self.toolBar_2.setWindowTitle(_translate("MainWindow", "toolBar_2"))
self.fileOpenAction.setText(_translate("MainWindow", "打开"))
self.fileOpenAction.setShortcut(_translate("MainWindow", "Alt+Q"))
self.fileNewAction.setText(_translate("MainWindow", "新建"))
self.fileNewAction.setShortcut(_translate("MainWindow", "Alt+N"))
self.fileCloseAction.setText(_translate("MainWindow", "关闭"))
self.fileCloseAction.setShortcut(_translate("MainWindow", "Alt+C"))
self.addWinAction.setText(_translate("MainWindow", "添加窗口"))