forked from mrknow001/API-Explorer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDocUI.py
42 lines (35 loc) · 1.54 KB
/
DocUI.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
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'DocUI.ui'
#
# Created by: PyQt5 UI code generator 5.15.4
#
# 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, QtWidgets
from PyQt5.QtWidgets import QDialog
class Ui_Form(QDialog):
def __init__(self, doc, title):
super().__init__()
self.doc = doc
self.title = title
def setupUi(self, Form):
Form.setObjectName("Form")
Form.resize(842, 493)
self.gridLayout_2 = QtWidgets.QGridLayout(Form)
self.gridLayout_2.setObjectName("gridLayout_2")
self.groupBox = QtWidgets.QGroupBox(Form)
self.groupBox.setObjectName("groupBox")
self.gridLayout = QtWidgets.QGridLayout(self.groupBox)
self.gridLayout.setObjectName("gridLayout")
self.textBrowser = QtWidgets.QTextBrowser(self.groupBox)
self.textBrowser.setObjectName("textBrowser")
self.gridLayout.addWidget(self.textBrowser, 0, 0, 1, 1)
self.gridLayout_2.addWidget(self.groupBox, 0, 0, 1, 1)
self.retranslateUi(Form)
QtCore.QMetaObject.connectSlotsByName(Form)
def retranslateUi(self, Form):
_translate = QtCore.QCoreApplication.translate
Form.setWindowTitle(_translate("Form", "接口文档"))
self.groupBox.setTitle(_translate("Form", str(self.title)+" 接口文档"))
# 设置文本
self.textBrowser.setText(_translate("Form", self.doc))