This repository has been archived by the owner on Apr 16, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmainwindow.py
45 lines (38 loc) · 2 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
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'mainwindow.ui'
#
# Created by: PyQt5 UI code generator 5.15.6
#
# WARNING: Any manual changes made to this file will be lost when pyuic5 is
# run again. Do not edit this file unless you know what you are doing.
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_TranslatorMain(object):
def setupUi(self, TranslatorMain):
TranslatorMain.setObjectName("TranslatorMain")
TranslatorMain.resize(503, 304)
self.centralwidget = QtWidgets.QWidget(TranslatorMain)
self.centralwidget.setObjectName("centralwidget")
self.gb_do = QtWidgets.QGroupBox(self.centralwidget)
self.gb_do.setGeometry(QtCore.QRect(10, 100, 481, 151))
self.gb_do.setObjectName("gb_do")
self.pbtn_translate = QtWidgets.QPushButton(self.gb_do)
self.pbtn_translate.setGeometry(QtCore.QRect(10, 20, 75, 23))
self.pbtn_translate.setObjectName("pbtn_translate")
self.pte_result = QtWidgets.QPlainTextEdit(self.centralwidget)
self.pte_result.setGeometry(QtCore.QRect(10, 20, 481, 71))
self.pte_result.setObjectName("pte_result")
TranslatorMain.setCentralWidget(self.centralwidget)
self.menubar = QtWidgets.QMenuBar(TranslatorMain)
self.menubar.setGeometry(QtCore.QRect(0, 0, 503, 23))
self.menubar.setObjectName("menubar")
TranslatorMain.setMenuBar(self.menubar)
self.statusbar = QtWidgets.QStatusBar(TranslatorMain)
self.statusbar.setObjectName("statusbar")
TranslatorMain.setStatusBar(self.statusbar)
self.retranslateUi(TranslatorMain)
QtCore.QMetaObject.connectSlotsByName(TranslatorMain)
def retranslateUi(self, TranslatorMain):
_translate = QtCore.QCoreApplication.translate
TranslatorMain.setWindowTitle(_translate("TranslatorMain", "O2T Translator"))
self.gb_do.setTitle(_translate("TranslatorMain", "操作"))
self.pbtn_translate.setText(_translate("TranslatorMain", "翻译"))