代码拉取完成,页面将自动刷新
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'main.ui'
#
# Created by: PyQt5 UI code generator 5.11.3
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_MainWindow(object):
def setupUi(self, MainWindow):
MainWindow.setObjectName("MainWindow")
MainWindow.resize(800, 600)
MainWindow.setMinimumSize(QtCore.QSize(800, 600))
MainWindow.setMaximumSize(QtCore.QSize(800, 600))
MainWindow.setCursor(QtGui.QCursor(QtCore.Qt.ArrowCursor))
icon = QtGui.QIcon()
icon.addPixmap(QtGui.QPixmap(":/img/hotel.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
MainWindow.setWindowIcon(icon)
MainWindow.setStyleSheet("")
MainWindow.setIconSize(QtCore.QSize(36, 36))
self.centralwidget = QtWidgets.QWidget(MainWindow)
self.centralwidget.setObjectName("centralwidget")
self.tabWidget = QtWidgets.QTabWidget(self.centralwidget)
self.tabWidget.setEnabled(True)
self.tabWidget.setGeometry(QtCore.QRect(0, 0, 800, 600))
self.tabWidget.setMinimumSize(QtCore.QSize(800, 600))
self.tabWidget.setMaximumSize(QtCore.QSize(800, 600))
font = QtGui.QFont()
font.setFamily("幼圆")
font.setPointSize(10)
font.setBold(False)
font.setItalic(False)
font.setWeight(50)
font.setKerning(True)
self.tabWidget.setFont(font)
self.tabWidget.setStyleSheet("QWidget{\n"
" background-color: rgb(250, 250, 250);\n"
"}")
self.tabWidget.setTabPosition(QtWidgets.QTabWidget.North)
self.tabWidget.setTabShape(QtWidgets.QTabWidget.Rounded)
self.tabWidget.setElideMode(QtCore.Qt.ElideNone)
self.tabWidget.setUsesScrollButtons(True)
self.tabWidget.setDocumentMode(False)
self.tabWidget.setTabsClosable(False)
self.tabWidget.setMovable(False)
self.tabWidget.setTabBarAutoHide(False)
self.tabWidget.setObjectName("tabWidget")
self.tab = QtWidgets.QWidget()
self.tab.setObjectName("tab")
self.label_2 = QtWidgets.QLabel(self.tab)
self.label_2.setGeometry(QtCore.QRect(30, 80, 211, 41))
font = QtGui.QFont()
font.setFamily("幼圆")
font.setPointSize(14)
self.label_2.setFont(font)
self.label_2.setObjectName("label_2")
self.progressBar = QtWidgets.QProgressBar(self.tab)
self.progressBar.setEnabled(True)
self.progressBar.setGeometry(QtCore.QRect(280, 30, 411, 41))
font = QtGui.QFont()
font.setFamily("Baskerville Old Face")
font.setPointSize(14)
self.progressBar.setFont(font)
self.progressBar.setStyleSheet("QProgressBar {\n"
" border: 2px solid grey;\n"
" border-radius: 5px;\n"
" text-align: center;\n"
"}\n"
"\n"
"QProgressBar::chunk {\n"
" background-color:#fdc901;\n"
" width: 20px;\n"
"}")
self.progressBar.setProperty("value", 0)
self.progressBar.setObjectName("progressBar")
self.label_4 = QtWidgets.QLabel(self.tab)
self.label_4.setGeometry(QtCore.QRect(30, 240, 201, 41))
font = QtGui.QFont()
font.setFamily("幼圆")
font.setPointSize(14)
self.label_4.setFont(font)
self.label_4.setObjectName("label_4")
self.radio_input = QtWidgets.QRadioButton(self.tab)
self.radio_input.setGeometry(QtCore.QRect(70, 130, 141, 21))
font = QtGui.QFont()
font.setFamily("幼圆")
font.setPointSize(10)
self.radio_input.setFont(font)
self.radio_input.setChecked(True)
self.radio_input.setObjectName("radio_input")
self.frame_input = QtWidgets.QFrame(self.tab)
self.frame_input.setEnabled(False)
self.frame_input.setGeometry(QtCore.QRect(230, 150, 471, 61))
self.frame_input.setFrameShape(QtWidgets.QFrame.StyledPanel)
self.frame_input.setFrameShadow(QtWidgets.QFrame.Raised)
self.frame_input.setObjectName("frame_input")
self.input = QtWidgets.QLineEdit(self.frame_input)
self.input.setGeometry(QtCore.QRect(10, 10, 321, 31))
font = QtGui.QFont()
font.setFamily("幼圆")
font.setPointSize(10)
self.input.setFont(font)
self.input.setStyleSheet("QLineEdit{\n"
" border:1px solid gray;\n"
" border-radius:15px;\n"
" padding:2px 4px;\n"
"}")
self.input.setText("")
self.input.setMaxLength(40)
self.input.setClearButtonEnabled(True)
self.input.setObjectName("input")
self.analyse = QtWidgets.QPushButton(self.frame_input)
self.analyse.setEnabled(False)
self.analyse.setGeometry(QtCore.QRect(340, 10, 101, 31))
font = QtGui.QFont()
font.setFamily("幼圆")
font.setPointSize(10)
self.analyse.setFont(font)
self.analyse.setStyleSheet("QPushButton{\n"
" border:1px solid gray;\n"
" border-radius:15px;\n"
" padding:2px 4px;\n"
" transition-duration: 1s; \n"
"}\n"
"\n"
"QPushButton:hover{\n"
" border:1px solid #1681d3;\n"
" color:#1681d3;\n"
" \n"
"}")
icon1 = QtGui.QIcon()
icon1.addPixmap(QtGui.QPixmap(":/img/tab1.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
self.analyse.setIcon(icon1)
self.analyse.setIconSize(QtCore.QSize(20, 20))
self.analyse.setObjectName("analyse")
self.radio_openfile = QtWidgets.QRadioButton(self.tab)
self.radio_openfile.setGeometry(QtCore.QRect(70, 170, 101, 16))
font = QtGui.QFont()
font.setFamily("幼圆")
font.setPointSize(10)
self.radio_openfile.setFont(font)
self.radio_openfile.setObjectName("radio_openfile")
self.frame_openfile = QtWidgets.QFrame(self.tab)
self.frame_openfile.setEnabled(False)
self.frame_openfile.setGeometry(QtCore.QRect(200, 130, 481, 101))
font = QtGui.QFont()
font.setFamily("微软雅黑")
self.frame_openfile.setFont(font)
self.frame_openfile.setFrameShape(QtWidgets.QFrame.StyledPanel)
self.frame_openfile.setFrameShadow(QtWidgets.QFrame.Raised)
self.frame_openfile.setObjectName("frame_openfile")
self.layoutWidget = QtWidgets.QWidget(self.frame_openfile)
self.layoutWidget.setGeometry(QtCore.QRect(30, 10, 451, 88))
self.layoutWidget.setObjectName("layoutWidget")
self.gridLayout = QtWidgets.QGridLayout(self.layoutWidget)
self.gridLayout.setContentsMargins(10, 0, 10, 0)
self.gridLayout.setHorizontalSpacing(20)
self.gridLayout.setVerticalSpacing(10)
self.gridLayout.setObjectName("gridLayout")
self.open_csv = QtWidgets.QCommandLinkButton(self.layoutWidget)
self.open_csv.setCursor(QtGui.QCursor(QtCore.Qt.PointingHandCursor))
self.open_csv.setStyleSheet("QCommandLinkButton:hover{\n"
" border:2px solid #1681d3;\n"
" border-radius:17px;\n"
" \n"
"}\n"
"\n"
"QCommandLinkButton{\n"
"padding:5px;\n"
"border:n}")
icon2 = QtGui.QIcon()
icon2.addPixmap(QtGui.QPixmap(":/img/select.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
self.open_csv.setIcon(icon2)
self.open_csv.setObjectName("open_csv")
self.gridLayout.addWidget(self.open_csv, 0, 0, 1, 1)
self.open_json = QtWidgets.QCommandLinkButton(self.layoutWidget)
self.open_json.setCursor(QtGui.QCursor(QtCore.Qt.PointingHandCursor))
self.open_json.setStyleSheet("QCommandLinkButton:hover{\n"
" border:2px solid #1681d3;\n"
" border-radius:17px;\n"
" \n"
"}\n"
"\n"
"QCommandLinkButton{\n"
"padding:5px;\n"
"border:n}")
self.open_json.setIcon(icon2)
self.open_json.setObjectName("open_json")
self.gridLayout.addWidget(self.open_json, 0, 1, 1, 1)
self.open_sql = QtWidgets.QCommandLinkButton(self.layoutWidget)
self.open_sql.setEnabled(False)
self.open_sql.setCursor(QtGui.QCursor(QtCore.Qt.PointingHandCursor))
self.open_sql.setStyleSheet("QCommandLinkButton:hover{\n"
" border:2px solid #1681d3;\n"
" border-radius:17px;\n"
" \n"
"}\n"
"\n"
"QCommandLinkButton{\n"
"padding:5px;\n"
"border:n}")
self.open_sql.setIcon(icon2)
self.open_sql.setObjectName("open_sql")
self.gridLayout.addWidget(self.open_sql, 1, 0, 1, 1)
self.open_txt = QtWidgets.QCommandLinkButton(self.layoutWidget)
self.open_txt.setEnabled(False)
self.open_txt.setCursor(QtGui.QCursor(QtCore.Qt.PointingHandCursor))
self.open_txt.setMouseTracking(False)
self.open_txt.setStyleSheet("QCommandLinkButton:hover{\n"
" border:2px solid #1681d3;\n"
" border-radius:17px;\n"
" \n"
"}\n"
"\n"
"QCommandLinkButton{\n"
"padding:5px;\n"
"border:n}")
self.open_txt.setIcon(icon2)
self.open_txt.setObjectName("open_txt")
self.gridLayout.addWidget(self.open_txt, 1, 1, 1, 1)
self.line = QtWidgets.QFrame(self.tab)
self.line.setGeometry(QtCore.QRect(40, 130, 20, 101))
self.line.setFrameShape(QtWidgets.QFrame.VLine)
self.line.setFrameShadow(QtWidgets.QFrame.Sunken)
self.line.setObjectName("line")
self.groupBox = QtWidgets.QGroupBox(self.tab)
self.groupBox.setGeometry(QtCore.QRect(300, 270, 461, 271))
font = QtGui.QFont()
font.setFamily("Baskerville Old Face")
font.setPointSize(13)
self.groupBox.setFont(font)
self.groupBox.setObjectName("groupBox")
self.OutputBox = QtWidgets.QTextBrowser(self.groupBox)
self.OutputBox.setGeometry(QtCore.QRect(20, 30, 421, 231))
font = QtGui.QFont()
font.setFamily("等线")
font.setPointSize(10)
self.OutputBox.setFont(font)
self.OutputBox.setStyleSheet("border:n")
self.OutputBox.setVerticalScrollBarPolicy(QtCore.Qt.ScrollBarAsNeeded)
self.OutputBox.setHorizontalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)
self.OutputBox.setObjectName("OutputBox")
self.radio_net = QtWidgets.QRadioButton(self.tab)
self.radio_net.setGeometry(QtCore.QRect(70, 207, 101, 16))
font = QtGui.QFont()
font.setFamily("幼圆")
font.setPointSize(10)
self.radio_net.setFont(font)
self.radio_net.setObjectName("radio_net")
self.frame_net = QtWidgets.QFrame(self.tab)
self.frame_net.setEnabled(False)
self.frame_net.setGeometry(QtCore.QRect(230, 140, 501, 101))
self.frame_net.setStyleSheet("border;none;")
self.frame_net.setFrameShape(QtWidgets.QFrame.StyledPanel)
self.frame_net.setFrameShadow(QtWidgets.QFrame.Raised)
self.frame_net.setObjectName("frame_net")
self.crawlButton = QtWidgets.QPushButton(self.frame_net)
self.crawlButton.setGeometry(QtCore.QRect(340, 40, 101, 31))
font = QtGui.QFont()
font.setFamily("幼圆")
font.setPointSize(10)
self.crawlButton.setFont(font)
self.crawlButton.setCursor(QtGui.QCursor(QtCore.Qt.PointingHandCursor))
self.crawlButton.setStyleSheet("QPushButton{\n"
" border:1px solid gray;\n"
" border-radius:15px;\n"
" padding:2px 4px;\n"
"}\n"
"\n"
"QPushButton:hover{\n"
" border:1px solid #1681d3;\n"
" color:#1681d3;\n"
" \n"
"}")
icon3 = QtGui.QIcon()
icon3.addPixmap(QtGui.QPixmap(":/img/train.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
self.crawlButton.setIcon(icon3)
self.crawlButton.setIconSize(QtCore.QSize(22, 22))
self.crawlButton.setObjectName("crawlButton")
self.layoutWidget_2 = QtWidgets.QWidget(self.frame_net)
self.layoutWidget_2.setGeometry(QtCore.QRect(1, 0, 441, 27))
self.layoutWidget_2.setObjectName("layoutWidget_2")
self.horizontalLayout_2 = QtWidgets.QHBoxLayout(self.layoutWidget_2)
self.horizontalLayout_2.setContentsMargins(0, 0, 0, 0)
self.horizontalLayout_2.setSpacing(0)
self.horizontalLayout_2.setObjectName("horizontalLayout_2")
self.label_5 = QtWidgets.QLabel(self.layoutWidget_2)
font = QtGui.QFont()
font.setFamily("幼圆")
font.setPointSize(10)
self.label_5.setFont(font)
self.label_5.setObjectName("label_5")
self.horizontalLayout_2.addWidget(self.label_5)
self.citybox = QtWidgets.QComboBox(self.layoutWidget_2)
font = QtGui.QFont()
font.setFamily("微软雅黑 Light")
font.setPointSize(10)
self.citybox.setFont(font)
self.citybox.setStyleSheet("")
self.citybox.setObjectName("citybox")
self.citybox.addItem("")
self.citybox.addItem("")
self.citybox.addItem("")
self.citybox.addItem("")
self.citybox.addItem("")
self.citybox.addItem("")
self.citybox.addItem("")
self.citybox.addItem("")
self.citybox.addItem("")
self.citybox.addItem("")
self.citybox.addItem("")
self.citybox.addItem("")
self.citybox.addItem("")
self.citybox.addItem("")
self.citybox.addItem("")
self.citybox.addItem("")
self.horizontalLayout_2.addWidget(self.citybox)
spacerItem = QtWidgets.QSpacerItem(56, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.horizontalLayout_2.addItem(spacerItem)
self.label_7 = QtWidgets.QLabel(self.layoutWidget_2)
font = QtGui.QFont()
font.setFamily("幼圆")
font.setPointSize(10)
self.label_7.setFont(font)
self.label_7.setObjectName("label_7")
self.horizontalLayout_2.addWidget(self.label_7)
self.input_id = QtWidgets.QLineEdit(self.layoutWidget_2)
font = QtGui.QFont()
font.setFamily("Arial")
font.setPointSize(10)
self.input_id.setFont(font)
self.input_id.setContextMenuPolicy(QtCore.Qt.NoContextMenu)
self.input_id.setStyleSheet("QLineEdit{\n"
" border:1px solid gray;\n"
" border-radius:10px;\n"
" padding:2px 4px;\n"
"}")
self.input_id.setMaxLength(6)
self.input_id.setPlaceholderText("")
self.input_id.setClearButtonEnabled(True)
self.input_id.setObjectName("input_id")
self.horizontalLayout_2.addWidget(self.input_id)
spacerItem1 = QtWidgets.QSpacerItem(51, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.horizontalLayout_2.addItem(spacerItem1)
self.label_9 = QtWidgets.QLabel(self.layoutWidget_2)
font = QtGui.QFont()
font.setFamily("幼圆")
font.setPointSize(10)
self.label_9.setFont(font)
self.label_9.setObjectName("label_9")
self.horizontalLayout_2.addWidget(self.label_9)
self.spinBox = QtWidgets.QSpinBox(self.layoutWidget_2)
font = QtGui.QFont()
font.setFamily("Arial")
font.setPointSize(10)
self.spinBox.setFont(font)
self.spinBox.setButtonSymbols(QtWidgets.QAbstractSpinBox.PlusMinus)
self.spinBox.setMinimum(1)
self.spinBox.setMaximum(5)
self.spinBox.setObjectName("spinBox")
self.horizontalLayout_2.addWidget(self.spinBox)
self.frame_netResult = QtWidgets.QFrame(self.tab)
self.frame_netResult.setGeometry(QtCore.QRect(30, 285, 261, 261))
font = QtGui.QFont()
font.setFamily("幼圆")
self.frame_netResult.setFont(font)
self.frame_netResult.setFrameShape(QtWidgets.QFrame.StyledPanel)
self.frame_netResult.setFrameShadow(QtWidgets.QFrame.Raised)
self.frame_netResult.setObjectName("frame_netResult")
self.layoutWidget_3 = QtWidgets.QWidget(self.frame_netResult)
self.layoutWidget_3.setGeometry(QtCore.QRect(40, 20, 221, 161))
self.layoutWidget_3.setObjectName("layoutWidget_3")
self.formLayout = QtWidgets.QFormLayout(self.layoutWidget_3)
self.formLayout.setRowWrapPolicy(QtWidgets.QFormLayout.DontWrapRows)
self.formLayout.setLabelAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
self.formLayout.setFormAlignment(QtCore.Qt.AlignJustify|QtCore.Qt.AlignTop)
self.formLayout.setContentsMargins(0, 0, 0, 0)
self.formLayout.setHorizontalSpacing(10)
self.formLayout.setVerticalSpacing(13)
self.formLayout.setObjectName("formLayout")
self.label_11 = QtWidgets.QLabel(self.layoutWidget_3)
font = QtGui.QFont()
font.setFamily("幼圆")
font.setPointSize(10)
self.label_11.setFont(font)
self.label_11.setObjectName("label_11")
self.formLayout.setWidget(0, QtWidgets.QFormLayout.LabelRole, self.label_11)
self.label_hotelname = QtWidgets.QLabel(self.layoutWidget_3)
font = QtGui.QFont()
font.setFamily("幼圆")
font.setPointSize(10)
self.label_hotelname.setFont(font)
self.label_hotelname.setText("")
self.label_hotelname.setObjectName("label_hotelname")
self.formLayout.setWidget(0, QtWidgets.QFormLayout.FieldRole, self.label_hotelname)
self.label_13 = QtWidgets.QLabel(self.layoutWidget_3)
font = QtGui.QFont()
font.setFamily("幼圆")
font.setPointSize(10)
self.label_13.setFont(font)
self.label_13.setObjectName("label_13")
self.formLayout.setWidget(1, QtWidgets.QFormLayout.LabelRole, self.label_13)
self.label_total = QtWidgets.QLabel(self.layoutWidget_3)
font = QtGui.QFont()
font.setFamily("Arial")
font.setPointSize(10)
self.label_total.setFont(font)
self.label_total.setText("")
self.label_total.setObjectName("label_total")
self.formLayout.setWidget(1, QtWidgets.QFormLayout.FieldRole, self.label_total)
self.label_15 = QtWidgets.QLabel(self.layoutWidget_3)
font = QtGui.QFont()
font.setFamily("幼圆")
font.setPointSize(10)
self.label_15.setFont(font)
self.label_15.setObjectName("label_15")
self.formLayout.setWidget(2, QtWidgets.QFormLayout.LabelRole, self.label_15)
self.label_good = QtWidgets.QLabel(self.layoutWidget_3)
font = QtGui.QFont()
font.setFamily("Arial")
font.setPointSize(10)
self.label_good.setFont(font)
self.label_good.setText("")
self.label_good.setObjectName("label_good")
self.formLayout.setWidget(2, QtWidgets.QFormLayout.FieldRole, self.label_good)
self.label_17 = QtWidgets.QLabel(self.layoutWidget_3)
font = QtGui.QFont()
font.setFamily("幼圆")
font.setPointSize(10)
self.label_17.setFont(font)
self.label_17.setObjectName("label_17")
self.formLayout.setWidget(3, QtWidgets.QFormLayout.LabelRole, self.label_17)
self.label_mid = QtWidgets.QLabel(self.layoutWidget_3)
font = QtGui.QFont()
font.setFamily("Arial")
font.setPointSize(10)
self.label_mid.setFont(font)
self.label_mid.setText("")
self.label_mid.setObjectName("label_mid")
self.formLayout.setWidget(3, QtWidgets.QFormLayout.FieldRole, self.label_mid)
self.label_19 = QtWidgets.QLabel(self.layoutWidget_3)
font = QtGui.QFont()
font.setFamily("幼圆")
font.setPointSize(10)
self.label_19.setFont(font)
self.label_19.setObjectName("label_19")
self.formLayout.setWidget(4, QtWidgets.QFormLayout.LabelRole, self.label_19)
self.label_bad = QtWidgets.QLabel(self.layoutWidget_3)
font = QtGui.QFont()
font.setFamily("Arial")
font.setPointSize(10)
self.label_bad.setFont(font)
self.label_bad.setText("")
self.label_bad.setObjectName("label_bad")
self.formLayout.setWidget(4, QtWidgets.QFormLayout.FieldRole, self.label_bad)
self.label_21 = QtWidgets.QLabel(self.layoutWidget_3)
font = QtGui.QFont()
font.setFamily("幼圆")
font.setPointSize(10)
self.label_21.setFont(font)
self.label_21.setObjectName("label_21")
self.formLayout.setWidget(5, QtWidgets.QFormLayout.LabelRole, self.label_21)
self.label_aver = QtWidgets.QLabel(self.layoutWidget_3)
font = QtGui.QFont()
font.setFamily("Arial")
font.setPointSize(10)
self.label_aver.setFont(font)
self.label_aver.setText("")
self.label_aver.setObjectName("label_aver")
self.formLayout.setWidget(5, QtWidgets.QFormLayout.FieldRole, self.label_aver)
self.line_5 = QtWidgets.QFrame(self.frame_netResult)
self.line_5.setGeometry(QtCore.QRect(10, 10, 20, 175))
self.line_5.setFrameShape(QtWidgets.QFrame.VLine)
self.line_5.setFrameShadow(QtWidgets.QFrame.Sunken)
self.line_5.setObjectName("line_5")
self.button_count = QtWidgets.QPushButton(self.frame_netResult)
self.button_count.setEnabled(False)
self.button_count.setGeometry(QtCore.QRect(140, 200, 121, 41))
font = QtGui.QFont()
font.setFamily("微软雅黑 Light")
font.setPointSize(10)
self.button_count.setFont(font)
self.button_count.setCursor(QtGui.QCursor(QtCore.Qt.PointingHandCursor))
self.button_count.setStyleSheet("QPushButton:hover{\n"
" border:2px solid #1681d3;\n"
" border-radius:20px;\n"
" \n"
"}\n"
"QPushButton{\n"
"padding:5px;\n"
"border:1px solid #888;\n"
"border-radius:20px;}")
icon4 = QtGui.QIcon()
icon4.addPixmap(QtGui.QPixmap(":/img/count.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
self.button_count.setIcon(icon4)
self.button_count.setIconSize(QtCore.QSize(20, 20))
self.button_count.setObjectName("button_count")
self.button_clearBuffer = QtWidgets.QPushButton(self.frame_netResult)
self.button_clearBuffer.setEnabled(False)
self.button_clearBuffer.setGeometry(QtCore.QRect(0, 200, 121, 41))
font = QtGui.QFont()
font.setFamily("微软雅黑 Light")
font.setPointSize(10)
self.button_clearBuffer.setFont(font)
self.button_clearBuffer.setCursor(QtGui.QCursor(QtCore.Qt.PointingHandCursor))
self.button_clearBuffer.setStyleSheet("QPushButton:hover{\n"
" border:2px solid #fdc901;\n"
" border-radius:20px;\n"
" \n"
"}\n"
"QPushButton{\n"
"padding:5px;\n"
"border:1px solid #aaa;\n"
"border-radius:20px;}")
icon5 = QtGui.QIcon()
icon5.addPixmap(QtGui.QPixmap(":/img/buffer.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
self.button_clearBuffer.setIcon(icon5)
self.button_clearBuffer.setIconSize(QtCore.QSize(24, 24))
self.button_clearBuffer.setObjectName("button_clearBuffer")
self.frame_opResult = QtWidgets.QFrame(self.tab)
self.frame_opResult.setGeometry(QtCore.QRect(30, 300, 261, 161))
font = QtGui.QFont()
font.setPointSize(12)
self.frame_opResult.setFont(font)
self.frame_opResult.setFrameShape(QtWidgets.QFrame.StyledPanel)
self.frame_opResult.setFrameShadow(QtWidgets.QFrame.Raised)
self.frame_opResult.setObjectName("frame_opResult")
self.label_23 = QtWidgets.QLabel(self.frame_opResult)
self.label_23.setGeometry(QtCore.QRect(37, 14, 96, 21))
font = QtGui.QFont()
font.setFamily("幼圆")
font.setPointSize(10)
self.label_23.setFont(font)
self.label_23.setObjectName("label_23")
self.sum_show = QtWidgets.QLabel(self.frame_opResult)
self.sum_show.setGeometry(QtCore.QRect(160, 14, 16, 21))
font = QtGui.QFont()
font.setFamily("Arial")
font.setPointSize(10)
self.sum_show.setFont(font)
self.sum_show.setText("")
self.sum_show.setObjectName("sum_show")
self.label_24 = QtWidgets.QLabel(self.frame_opResult)
self.label_24.setGeometry(QtCore.QRect(37, 50, 112, 21))
font = QtGui.QFont()
font.setFamily("幼圆")
font.setPointSize(10)
self.label_24.setFont(font)
self.label_24.setObjectName("label_24")
self.pos_show = QtWidgets.QLabel(self.frame_opResult)
self.pos_show.setGeometry(QtCore.QRect(160, 50, 16, 21))
font = QtGui.QFont()
font.setFamily("Arial")
font.setPointSize(10)
self.pos_show.setFont(font)
self.pos_show.setText("")
self.pos_show.setObjectName("pos_show")
self.label_25 = QtWidgets.QLabel(self.frame_opResult)
self.label_25.setGeometry(QtCore.QRect(37, 86, 112, 21))
font = QtGui.QFont()
font.setFamily("幼圆")
font.setPointSize(10)
self.label_25.setFont(font)
self.label_25.setObjectName("label_25")
self.neg_show = QtWidgets.QLabel(self.frame_opResult)
self.neg_show.setGeometry(QtCore.QRect(160, 86, 16, 21))
font = QtGui.QFont()
font.setFamily("Arial")
font.setPointSize(10)
self.neg_show.setFont(font)
self.neg_show.setText("")
self.neg_show.setObjectName("neg_show")
self.label_26 = QtWidgets.QLabel(self.frame_opResult)
self.label_26.setGeometry(QtCore.QRect(37, 122, 80, 21))
font = QtGui.QFont()
font.setFamily("幼圆")
font.setPointSize(10)
self.label_26.setFont(font)
self.label_26.setObjectName("label_26")
self.aver_show = QtWidgets.QLabel(self.frame_opResult)
self.aver_show.setGeometry(QtCore.QRect(126, 123, 51, 21))
font = QtGui.QFont()
font.setFamily("Arial")
font.setPointSize(10)
self.aver_show.setFont(font)
self.aver_show.setText("")
self.aver_show.setObjectName("aver_show")
self.line_2 = QtWidgets.QFrame(self.frame_opResult)
self.line_2.setGeometry(QtCore.QRect(10, 0, 20, 161))
self.line_2.setFrameShape(QtWidgets.QFrame.VLine)
self.line_2.setFrameShadow(QtWidgets.QFrame.Sunken)
self.line_2.setObjectName("line_2")
self.label = QtWidgets.QLabel(self.tab)
self.label.setGeometry(QtCore.QRect(30, 40, 80, 19))
font = QtGui.QFont()
font.setFamily("幼圆")
font.setPointSize(14)
self.label.setFont(font)
self.label.setObjectName("label")
self.TrainButton = QtWidgets.QCommandLinkButton(self.tab)
self.TrainButton.setGeometry(QtCore.QRect(110, 30, 141, 41))
font = QtGui.QFont()
font.setFamily("Segoe UI")
font.setPointSize(13)
self.TrainButton.setFont(font)
self.TrainButton.setCursor(QtGui.QCursor(QtCore.Qt.PointingHandCursor))
self.TrainButton.setStyleSheet("QCommandLinkButton:hover{\n"
" border:1px solid #1681d3;\n"
" border-radius:5px\n"
"}")
self.TrainButton.setIcon(icon2)
self.TrainButton.setObjectName("TrainButton")
self.frame_inputResult = QtWidgets.QFrame(self.tab)
self.frame_inputResult.setGeometry(QtCore.QRect(40, 308, 251, 221))
self.frame_inputResult.setFrameShape(QtWidgets.QFrame.StyledPanel)
self.frame_inputResult.setFrameShadow(QtWidgets.QFrame.Raised)
self.frame_inputResult.setObjectName("frame_inputResult")
self.rate = QtWidgets.QLabel(self.frame_inputResult)
self.rate.setGeometry(QtCore.QRect(20, 140, 241, 21))
font = QtGui.QFont()
font.setFamily("幼圆")
font.setPointSize(14)
self.rate.setFont(font)
self.rate.setText("")
self.rate.setObjectName("rate")
self.graphicsView = QtWidgets.QGraphicsView(self.frame_inputResult)
self.graphicsView.setGeometry(QtCore.QRect(100, 10, 51, 51))
self.graphicsView.setStyleSheet("\n"
"border:n\n"
"")
self.graphicsView.setObjectName("graphicsView")
self.judge = QtWidgets.QLabel(self.frame_inputResult)
self.judge.setGeometry(QtCore.QRect(80, 90, 111, 31))
font = QtGui.QFont()
font.setFamily("幼圆")
font.setPointSize(14)
self.judge.setFont(font)
self.judge.setText("")
self.judge.setObjectName("judge")
self.label.raise_()
self.TrainButton.raise_()
self.label_2.raise_()
self.progressBar.raise_()
self.label_4.raise_()
self.radio_input.raise_()
self.radio_openfile.raise_()
self.line.raise_()
self.groupBox.raise_()
self.radio_net.raise_()
self.frame_netResult.raise_()
self.frame_openfile.raise_()
self.frame_opResult.raise_()
self.frame_input.raise_()
self.frame_inputResult.raise_()
self.frame_net.raise_()
self.tabWidget.addTab(self.tab, icon1, "")
self.tab_2 = QtWidgets.QWidget()
self.tab_2.setObjectName("tab_2")
self.groupBox_2 = QtWidgets.QGroupBox(self.tab_2)
self.groupBox_2.setGeometry(QtCore.QRect(10, 270, 391, 291))
self.groupBox_2.setCheckable(False)
self.groupBox_2.setObjectName("groupBox_2")
self.gridLayoutWidget = QtWidgets.QWidget(self.groupBox_2)
self.gridLayoutWidget.setGeometry(QtCore.QRect(10, 20, 371, 261))
self.gridLayoutWidget.setObjectName("gridLayoutWidget")
self.testlayout = QtWidgets.QGridLayout(self.gridLayoutWidget)
self.testlayout.setContentsMargins(0, 0, 0, 0)
self.testlayout.setObjectName("testlayout")
self.groupBox_3 = QtWidgets.QGroupBox(self.tab_2)
self.groupBox_3.setGeometry(QtCore.QRect(420, 30, 361, 531))
self.groupBox_3.setObjectName("groupBox_3")
self.OutputBox_count = QtWidgets.QTextBrowser(self.groupBox_3)
self.OutputBox_count.setGeometry(QtCore.QRect(20, 30, 321, 481))
font = QtGui.QFont()
font.setFamily("宋体")
font.setPointSize(10)
self.OutputBox_count.setFont(font)
self.OutputBox_count.setStyleSheet("QTextBrowser{border:n;\n"
"background:#fff}")
self.OutputBox_count.setObjectName("OutputBox_count")
self.groupBox_4 = QtWidgets.QGroupBox(self.tab_2)
self.groupBox_4.setGeometry(QtCore.QRect(10, 30, 391, 221))
self.groupBox_4.setStyleSheet("background-color: rgb(250, 250, 250);")
self.groupBox_4.setObjectName("groupBox_4")
self.label_cloud = QtWidgets.QLabel(self.groupBox_4)
self.label_cloud.setGeometry(QtCore.QRect(-62, -98, 503, 414))
self.label_cloud.setText("")
self.label_cloud.setScaledContents(True)
self.label_cloud.setObjectName("label_cloud")
icon6 = QtGui.QIcon()
icon6.addPixmap(QtGui.QPixmap(":/img/tab2.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
self.tabWidget.addTab(self.tab_2, icon6, "")
MainWindow.setCentralWidget(self.centralwidget)
self.retranslateUi(MainWindow)
self.tabWidget.setCurrentIndex(0)
QtCore.QMetaObject.connectSlotsByName(MainWindow)
def retranslateUi(self, MainWindow):
_translate = QtCore.QCoreApplication.translate
MainWindow.setWindowTitle(_translate("MainWindow", "酒店评论情感分析系统"))
self.label_2.setText(_translate("MainWindow", "步骤二:选择测试方式"))
self.label_4.setText(_translate("MainWindow", "步骤三:查看测试结果"))
self.radio_input.setText(_translate("MainWindow", "直接输入测试"))
self.input.setPlaceholderText(_translate("MainWindow", "请在此输入测试评论"))
self.analyse.setText(_translate("MainWindow", "分析"))
self.radio_openfile.setText(_translate("MainWindow", "导入文件测试"))
self.open_csv.setText(_translate("MainWindow", "打开.csv文件"))
self.open_json.setText(_translate("MainWindow", "打开.json文件"))
self.open_sql.setText(_translate("MainWindow", "打开.sql文件"))
self.open_txt.setText(_translate("MainWindow", "打开.txt文件"))
self.groupBox.setTitle(_translate("MainWindow", "Output"))
self.radio_net.setText(_translate("MainWindow", "网络爬取测试"))
self.crawlButton.setText(_translate("MainWindow", "爬取"))
self.label_5.setText(_translate("MainWindow", "城市名称:"))
self.citybox.setItemText(0, _translate("MainWindow", "北京"))
self.citybox.setItemText(1, _translate("MainWindow", "大连"))
self.citybox.setItemText(2, _translate("MainWindow", "上海"))
self.citybox.setItemText(3, _translate("MainWindow", "深圳"))
self.citybox.setItemText(4, _translate("MainWindow", "南京"))
self.citybox.setItemText(5, _translate("MainWindow", "武汉"))
self.citybox.setItemText(6, _translate("MainWindow", "呼和浩特"))
self.citybox.setItemText(7, _translate("MainWindow", "石家庄"))
self.citybox.setItemText(8, _translate("MainWindow", "哈尔滨"))
self.citybox.setItemText(9, _translate("MainWindow", "重庆"))
self.citybox.setItemText(10, _translate("MainWindow", "成都"))
self.citybox.setItemText(11, _translate("MainWindow", "三亚"))
self.citybox.setItemText(12, _translate("MainWindow", "大理"))
self.citybox.setItemText(13, _translate("MainWindow", "丽江"))
self.citybox.setItemText(14, _translate("MainWindow", "西双版纳"))
self.citybox.setItemText(15, _translate("MainWindow", "沈阳"))
self.label_7.setText(_translate("MainWindow", "酒店ID:"))
self.input_id.setText(_translate("MainWindow", "3455"))
self.label_9.setText(_translate("MainWindow", "爬取页数:"))
self.label_11.setText(_translate("MainWindow", "酒店名称:"))
self.label_13.setText(_translate("MainWindow", "总评价数:"))
self.label_15.setText(_translate("MainWindow", "好评:"))
self.label_17.setText(_translate("MainWindow", "中评:"))
self.label_19.setText(_translate("MainWindow", "差评:"))
self.label_21.setText(_translate("MainWindow", "平均评分:"))
self.button_count.setText(_translate("MainWindow", "词频统计"))
self.button_clearBuffer.setText(_translate("MainWindow", "清除缓存"))
self.label_23.setText(_translate("MainWindow", "总测试用例:"))
self.label_24.setText(_translate("MainWindow", "正面评价数量:"))
self.label_25.setText(_translate("MainWindow", "负面评价数量:"))
self.label_26.setText(_translate("MainWindow", "综合指数:"))
self.label.setText(_translate("MainWindow", "步骤一:"))
self.TrainButton.setText(_translate("MainWindow", "训练模型"))
self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab), _translate("MainWindow", "情感分析"))
self.groupBox_2.setTitle(_translate("MainWindow", "训练词汇长度分布图"))
self.groupBox_3.setTitle(_translate("MainWindow", "词频统计"))
self.groupBox_4.setTitle(_translate("MainWindow", "词云展示"))
self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_2), _translate("MainWindow", "图表与其他"))
import resource_rc
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。