-
Notifications
You must be signed in to change notification settings - Fork 0
/
MainWindow.py
59 lines (52 loc) · 2.86 KB
/
MainWindow.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
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'MainWindow.ui'
#
# Created by: PyQt5 UI code generator 5.13.1
#
# 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.resize(418, 517)
self.centralwidget = QtWidgets.QWidget(MainWindow)
self.centralwidget.setObjectName("centralwidget")
self.gridLayout_2 = QtWidgets.QGridLayout(self.centralwidget)
self.gridLayout_2.setObjectName("gridLayout_2")
self.textEdit = QtWidgets.QTextEdit(self.centralwidget)
self.textEdit.setMinimumSize(QtCore.QSize(400, 400))
self.textEdit.setMaximumSize(QtCore.QSize(400, 400))
self.textEdit.setObjectName("textEdit")
self.gridLayout_2.addWidget(self.textEdit, 0, 0, 1, 1)
self.gridLayout = QtWidgets.QGridLayout()
self.gridLayout.setObjectName("gridLayout")
self.openfile = QtWidgets.QPushButton(self.centralwidget)
self.openfile.setMinimumSize(QtCore.QSize(175, 30))
self.openfile.setMaximumSize(QtCore.QSize(175, 30))
self.openfile.setObjectName("openfile")
self.gridLayout.addWidget(self.openfile, 0, 0, 1, 1)
spacerItem = QtWidgets.QSpacerItem(10, 30, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
self.gridLayout.addItem(spacerItem, 0, 1, 1, 1)
self.savefile = QtWidgets.QPushButton(self.centralwidget)
self.savefile.setMinimumSize(QtCore.QSize(175, 30))
self.savefile.setMaximumSize(QtCore.QSize(175, 30))
self.savefile.setObjectName("savefile")
self.gridLayout.addWidget(self.savefile, 0, 2, 1, 1)
self.gridLayout_2.addLayout(self.gridLayout, 3, 0, 1, 1)
spacerItem1 = QtWidgets.QSpacerItem(402, 10, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.gridLayout_2.addItem(spacerItem1, 2, 0, 1, 1)
MainWindow.setCentralWidget(self.centralwidget)
self.menubar = QtWidgets.QMenuBar(MainWindow)
self.menubar.setGeometry(QtCore.QRect(0, 0, 418, 23))
self.menubar.setObjectName("menubar")
MainWindow.setMenuBar(self.menubar)
self.statusbar = QtWidgets.QStatusBar(MainWindow)
self.statusbar.setObjectName("statusbar")
MainWindow.setStatusBar(self.statusbar)
self.retranslateUi(MainWindow)
QtCore.QMetaObject.connectSlotsByName(MainWindow)
def retranslateUi(self, MainWindow):
_translate = QtCore.QCoreApplication.translate
MainWindow.setWindowTitle(_translate("MainWindow", "MainWindow"))
self.openfile.setText(_translate("MainWindow", "打开文件"))
self.savefile.setText(_translate("MainWindow", "保存文件"))