-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDetail2.py
37 lines (31 loc) · 1.33 KB
/
Detail2.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
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'Detail.ui'
#
# Created by: PyQt5 UI code generator 5.6
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
import sys
from PyQt5.QtWidgets import QApplication, QWidget,QToolTip,QPushButton
from PyQt5.QtGui import QIcon,QFont
from PyQt5.QtCore import QCoreApplication
class Ui_Detail_Dialog(object):
def setupUi(self, Dialog, content):
self.Dialog = Dialog
self.content = content
Dialog.setObjectName("Dialog")
Dialog.resize(741, 245)
self.pushButton = QtWidgets.QPushButton(Dialog)
self.pushButton.setGeometry(QtCore.QRect(330, 210, 75, 23))
self.pushButton.setObjectName("pushButton")
self.textEdit = QtWidgets.QTextEdit(Dialog)
self.textEdit.setGeometry(QtCore.QRect(30, 20, 681, 181))
self.textEdit.setObjectName("textEdit")
self.retranslateUi(Dialog)
QtCore.QMetaObject.connectSlotsByName(Dialog)
def retranslateUi(self, Dialog):
_translate = QtCore.QCoreApplication.translate
self.pushButton.setText(_translate("Dialog", "关闭"))
self.pushButton.clicked.connect(self.Dialog.close)
Dialog.setWindowTitle(_translate("Dialog", "Dialog"))
self.textEdit.setPlainText(str(self.content))