parent
916216bb5b
commit
4342d761e3
@ -1,79 +0,0 @@
|
|||||||
# -*- coding: utf-8 -*-
|
|
||||||
|
|
||||||
# Form implementation generated from reading ui file '3.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_Dialog(object):
|
|
||||||
def setupUi(self, Dialog):
|
|
||||||
# Dialog.setObjectName("爬取内容")
|
|
||||||
Dialog.resize(854, 738)
|
|
||||||
# Dialog.setStyleSheet("#MainWindow{border-image:url(../test1.jpg);}")
|
|
||||||
Dialog.setWindowTitle('爬取内容')
|
|
||||||
Dialog.setWindowIcon(QtGui.QIcon('../test1.jpg'))
|
|
||||||
|
|
||||||
self.pushButton = QtWidgets.QPushButton(Dialog)
|
|
||||||
self.pushButton.setGeometry(QtCore.QRect(360, 60, 111, 41))
|
|
||||||
self.pushButton.setCheckable(True)
|
|
||||||
self.pushButton.setChecked(True)
|
|
||||||
self.pushButton.setObjectName("pushButton")
|
|
||||||
self.lineEdit = QtWidgets.QLineEdit(Dialog)
|
|
||||||
self.lineEdit.setGeometry(QtCore.QRect(60, 60, 231, 41))
|
|
||||||
self.lineEdit.setClearButtonEnabled(True)
|
|
||||||
self.lineEdit.setObjectName("lineEdit")
|
|
||||||
self.textEdit = QtWidgets.QTextEdit(Dialog)
|
|
||||||
self.textEdit.setGeometry(QtCore.QRect(30, 200, 801, 521))
|
|
||||||
self.textEdit.setObjectName("textEdit")
|
|
||||||
self.pushButton_2 = QtWidgets.QPushButton(Dialog)
|
|
||||||
self.pushButton_2.setGeometry(QtCore.QRect(560, 60, 111, 41))
|
|
||||||
self.pushButton_2.setCheckable(True)
|
|
||||||
self.pushButton_2.setChecked(True)
|
|
||||||
self.pushButton_2.setObjectName("pushButton_2")
|
|
||||||
|
|
||||||
self.retranslateUi(Dialog)
|
|
||||||
QtCore.QMetaObject.connectSlotsByName(Dialog)
|
|
||||||
|
|
||||||
def retranslateUi(self, Dialog):
|
|
||||||
_translate = QtCore.QCoreApplication.translate
|
|
||||||
Dialog.setWindowTitle(_translate("Dialog", "爬取结果"))
|
|
||||||
self.pushButton.setText(_translate("Dialog", "Search"))
|
|
||||||
self.pushButton_2.setText(_translate("Dialog", "词云图"))
|
|
||||||
self.lineEdit.setPlaceholderText('请输入...')
|
|
||||||
|
|
||||||
#按钮一样式
|
|
||||||
self.pushButton.clicked.connect(self.clickbtn)
|
|
||||||
# self.show();
|
|
||||||
self.lineEdit.setText('')
|
|
||||||
|
|
||||||
self.pushButton.setStyleSheet("background-color: rgb(164, 185, 255);"
|
|
||||||
"border-color: rgb(170, 150, 163);"
|
|
||||||
"font: 75 12pt \"Arial Narrow\";"
|
|
||||||
"color: rgb(0,0,0;")
|
|
||||||
|
|
||||||
#输出
|
|
||||||
# 点击鼠标触发函数
|
|
||||||
def clickbtn(self):
|
|
||||||
textboxValue = self.lineEdit.text()
|
|
||||||
self.textEdit.setText(textboxValue)
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
import sys
|
|
||||||
from PyQt5.QtWidgets import QApplication,QMainWindow
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
|
||||||
app = QApplication(sys.argv)
|
|
||||||
MainWindow = QMainWindow()
|
|
||||||
ui = Ui_Dialog()
|
|
||||||
ui.setupUi(MainWindow)
|
|
||||||
MainWindow.show()
|
|
||||||
sys.exit(app.exec())
|
|
Loading…
Reference in new issue