|
| 1 | +# -*- coding: utf-8 -*- |
| 2 | + |
| 3 | +# Form implementation generated from reading ui file '.\mainwindow.ui' |
| 4 | +# |
| 5 | +# Created by: PyQt5 UI code generator 5.15.9 |
| 6 | +# |
| 7 | +# WARNING: Any manual changes made to this file will be lost when pyuic5 is |
| 8 | +# run again. Do not edit this file unless you know what you are doing. |
| 9 | + |
| 10 | + |
| 11 | +from PyQt5 import QtCore, QtGui, QtWidgets |
| 12 | + |
| 13 | + |
| 14 | +class Ui_MainWindow(object): |
| 15 | + def setupUi(self, MainWindow): |
| 16 | + MainWindow.setObjectName("MainWindow") |
| 17 | + MainWindow.resize(800, 600) |
| 18 | + self.centralwidget = QtWidgets.QWidget(MainWindow) |
| 19 | + self.centralwidget.setObjectName("centralwidget") |
| 20 | + self.widget = QtWidgets.QWidget(self.centralwidget) |
| 21 | + self.widget.setGeometry(QtCore.QRect(140, 140, 501, 151)) |
| 22 | + self.widget.setObjectName("widget") |
| 23 | + self.verticalLayout = QtWidgets.QVBoxLayout(self.widget) |
| 24 | + self.verticalLayout.setContentsMargins(0, 0, 0, 0) |
| 25 | + self.verticalLayout.setObjectName("verticalLayout") |
| 26 | + self.horizontalLayout = QtWidgets.QHBoxLayout() |
| 27 | + self.horizontalLayout.setContentsMargins(-1, -1, 0, -1) |
| 28 | + self.horizontalLayout.setObjectName("horizontalLayout") |
| 29 | + self.label_voice = QtWidgets.QLabel(self.widget) |
| 30 | + font = QtGui.QFont() |
| 31 | + font.setPointSize(20) |
| 32 | + self.label_voice.setFont(font) |
| 33 | + self.label_voice.setObjectName("label_voice") |
| 34 | + self.horizontalLayout.addWidget(self.label_voice) |
| 35 | + self.comboBox = QtWidgets.QComboBox(self.widget) |
| 36 | + font = QtGui.QFont() |
| 37 | + font.setPointSize(20) |
| 38 | + self.comboBox.setFont(font) |
| 39 | + self.comboBox.setObjectName("comboBox") |
| 40 | + self.horizontalLayout.addWidget(self.comboBox) |
| 41 | + self.horizontalLayout.setStretch(0, 1) |
| 42 | + self.horizontalLayout.setStretch(1, 3) |
| 43 | + self.verticalLayout.addLayout(self.horizontalLayout) |
| 44 | + self.horizontalLayout_2 = QtWidgets.QHBoxLayout() |
| 45 | + self.horizontalLayout_2.setObjectName("horizontalLayout_2") |
| 46 | + self.label = QtWidgets.QLabel(self.widget) |
| 47 | + font = QtGui.QFont() |
| 48 | + font.setPointSize(20) |
| 49 | + self.label.setFont(font) |
| 50 | + self.label.setObjectName("label") |
| 51 | + self.horizontalLayout_2.addWidget(self.label) |
| 52 | + self.lineEdit = QtWidgets.QLineEdit(self.widget) |
| 53 | + font = QtGui.QFont() |
| 54 | + font.setPointSize(20) |
| 55 | + self.lineEdit.setFont(font) |
| 56 | + self.lineEdit.setObjectName("lineEdit") |
| 57 | + self.horizontalLayout_2.addWidget(self.lineEdit) |
| 58 | + self.pushButton = QtWidgets.QPushButton(self.widget) |
| 59 | + font = QtGui.QFont() |
| 60 | + font.setPointSize(20) |
| 61 | + self.pushButton.setFont(font) |
| 62 | + self.pushButton.setObjectName("pushButton") |
| 63 | + self.horizontalLayout_2.addWidget(self.pushButton) |
| 64 | + self.horizontalLayout_2.setStretch(0, 1) |
| 65 | + self.horizontalLayout_2.setStretch(1, 2) |
| 66 | + self.horizontalLayout_2.setStretch(2, 1) |
| 67 | + self.verticalLayout.addLayout(self.horizontalLayout_2) |
| 68 | + MainWindow.setCentralWidget(self.centralwidget) |
| 69 | + self.menubar = QtWidgets.QMenuBar(MainWindow) |
| 70 | + self.menubar.setGeometry(QtCore.QRect(0, 0, 800, 23)) |
| 71 | + self.menubar.setObjectName("menubar") |
| 72 | + MainWindow.setMenuBar(self.menubar) |
| 73 | + self.statusbar = QtWidgets.QStatusBar(MainWindow) |
| 74 | + self.statusbar.setObjectName("statusbar") |
| 75 | + MainWindow.setStatusBar(self.statusbar) |
| 76 | + |
| 77 | + self.retranslateUi(MainWindow) |
| 78 | + QtCore.QMetaObject.connectSlotsByName(MainWindow) |
| 79 | + |
| 80 | + def retranslateUi(self, MainWindow): |
| 81 | + _translate = QtCore.QCoreApplication.translate |
| 82 | + MainWindow.setWindowTitle(_translate("MainWindow", "QtTextToSpeech示例")) |
| 83 | + self.label_voice.setText(_translate("MainWindow", "选择声音")) |
| 84 | + self.label.setText(_translate("MainWindow", "输入文本")) |
| 85 | + self.pushButton.setText(_translate("MainWindow", "播放语音")) |
0 commit comments