feat: 修改样式

This commit is contained in:
caoqianming 2023-09-21 16:32:06 +08:00
parent c408437712
commit b213c75af7
4 changed files with 60 additions and 18 deletions

44
main.ui
View File

@ -29,7 +29,7 @@
</size> </size>
</property> </property>
<property name="windowTitle"> <property name="windowTitle">
<string>总院网络巡查系统</string> <string>中国建材总院宣传工作信息化管理平台</string>
</property> </property>
<property name="windowIcon"> <property name="windowIcon">
<iconset> <iconset>
@ -84,6 +84,17 @@
<height>24</height> <height>24</height>
</rect> </rect>
</property> </property>
<property name="font">
<font>
<pointsize>11</pointsize>
</font>
</property>
<property name="autoFillBackground">
<bool>false</bool>
</property>
<property name="styleSheet">
<string notr="true">background-color:#409EFF; color: white; border-radius: 2px</string>
</property>
<property name="text"> <property name="text">
<string>打开工具</string> <string>打开工具</string>
</property> </property>
@ -99,7 +110,9 @@
</property> </property>
<property name="font"> <property name="font">
<font> <font>
<family>楷体</family>
<pointsize>10</pointsize> <pointsize>10</pointsize>
<bold>false</bold>
</font> </font>
</property> </property>
<property name="styleSheet"> <property name="styleSheet">
@ -136,6 +149,9 @@
<height>24</height> <height>24</height>
</rect> </rect>
</property> </property>
<property name="styleSheet">
<string notr="true">background-color:#409EFF; color: white; border-radius: 2px</string>
</property>
<property name="text"> <property name="text">
<string>打开网站列表Excel</string> <string>打开网站列表Excel</string>
</property> </property>
@ -151,7 +167,9 @@
</property> </property>
<property name="font"> <property name="font">
<font> <font>
<family>楷体</family>
<pointsize>10</pointsize> <pointsize>10</pointsize>
<bold>false</bold>
</font> </font>
</property> </property>
<property name="styleSheet"> <property name="styleSheet">
@ -188,6 +206,9 @@
<height>24</height> <height>24</height>
</rect> </rect>
</property> </property>
<property name="styleSheet">
<string notr="true">background-color:#409EFF; color: white; border-radius: 2px</string>
</property>
<property name="text"> <property name="text">
<string>打开分析标准Excel</string> <string>打开分析标准Excel</string>
</property> </property>
@ -203,7 +224,9 @@
</property> </property>
<property name="font"> <property name="font">
<font> <font>
<family>楷体</family>
<pointsize>10</pointsize> <pointsize>10</pointsize>
<bold>false</bold>
</font> </font>
</property> </property>
<property name="styleSheet"> <property name="styleSheet">
@ -258,6 +281,9 @@
<height>24</height> <height>24</height>
</rect> </rect>
</property> </property>
<property name="styleSheet">
<string notr="true">background-color:#409EFF; color: white; border-radius: 2px</string>
</property>
<property name="text"> <property name="text">
<string>开始巡查</string> <string>开始巡查</string>
</property> </property>
@ -273,7 +299,9 @@
</property> </property>
<property name="font"> <property name="font">
<font> <font>
<family>楷体</family>
<pointsize>10</pointsize> <pointsize>10</pointsize>
<bold>false</bold>
</font> </font>
</property> </property>
<property name="styleSheet"> <property name="styleSheet">
@ -424,6 +452,9 @@
<height>24</height> <height>24</height>
</rect> </rect>
</property> </property>
<property name="styleSheet">
<string notr="true">background-color:#409EFF; color: white; border-radius: 2px</string>
</property>
<property name="text"> <property name="text">
<string>打开</string> <string>打开</string>
</property> </property>
@ -445,15 +476,16 @@
<widget class="QLabel" name="label_9"> <widget class="QLabel" name="label_9">
<property name="geometry"> <property name="geometry">
<rect> <rect>
<x>430</x> <x>260</x>
<y>0</y> <y>0</y>
<width>171</width> <width>341</width>
<height>41</height> <height>31</height>
</rect> </rect>
</property> </property>
<property name="font"> <property name="font">
<font> <font>
<pointsize>14</pointsize> <family>楷体</family>
<pointsize>11</pointsize>
<italic>false</italic> <italic>false</italic>
<bold>true</bold> <bold>true</bold>
</font> </font>
@ -462,7 +494,7 @@
<string notr="true">color:white;</string> <string notr="true">color:white;</string>
</property> </property>
<property name="text"> <property name="text">
<string>总院网络巡查系统</string> <string>中国建材总院宣传工作信息化管理平台</string>
</property> </property>
<property name="alignment"> <property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>

View File

@ -13,7 +13,6 @@ import pandas as pd
from urllib.parse import urlparse from urllib.parse import urlparse
from openpyxl import load_workbook from openpyxl import load_workbook
import threading import threading
import select
# from queue import Queue # from queue import Queue
BASE_DIR = os.path.dirname(os.path.abspath(__file__)) BASE_DIR = os.path.dirname(os.path.abspath(__file__))
@ -225,5 +224,4 @@ if __name__ == "__main__":
app = MyApplication(sys.argv) app = MyApplication(sys.argv)
main_window = app.createMainWindow() main_window = app.createMainWindow()
main_window.show() main_window.show()
sys.exit(app.exec()) sys.exit(app.exec())

Binary file not shown.

View File

@ -51,11 +51,16 @@ class Ui_MainWindow(object):
self.bWechat = QPushButton(self.groupBox) self.bWechat = QPushButton(self.groupBox)
self.bWechat.setObjectName(u"bWechat") self.bWechat.setObjectName(u"bWechat")
self.bWechat.setGeometry(QRect(20, 30, 75, 24)) self.bWechat.setGeometry(QRect(20, 30, 75, 24))
self.bWechat.setFont(font)
self.bWechat.setAutoFillBackground(False)
self.bWechat.setStyleSheet(u"background-color:#409EFF; color: white; border-radius: 2px")
self.label_5 = QLabel(self.groupBox) self.label_5 = QLabel(self.groupBox)
self.label_5.setObjectName(u"label_5") self.label_5.setObjectName(u"label_5")
self.label_5.setGeometry(QRect(20, 60, 161, 16)) self.label_5.setGeometry(QRect(20, 60, 161, 16))
font1 = QFont() font1 = QFont()
font1.setFamilies([u"\u6977\u4f53"])
font1.setPointSize(10) font1.setPointSize(10)
font1.setBold(False)
self.label_5.setFont(font1) self.label_5.setFont(font1)
self.label_5.setStyleSheet(u"color: red;") self.label_5.setStyleSheet(u"color: red;")
self.groupBox_2 = QGroupBox(self.centralwidget) self.groupBox_2 = QGroupBox(self.centralwidget)
@ -65,6 +70,7 @@ class Ui_MainWindow(object):
self.bWebSite = QPushButton(self.groupBox_2) self.bWebSite = QPushButton(self.groupBox_2)
self.bWebSite.setObjectName(u"bWebSite") self.bWebSite.setObjectName(u"bWebSite")
self.bWebSite.setGeometry(QRect(20, 30, 151, 24)) self.bWebSite.setGeometry(QRect(20, 30, 151, 24))
self.bWebSite.setStyleSheet(u"background-color:#409EFF; color: white; border-radius: 2px")
self.label_2 = QLabel(self.groupBox_2) self.label_2 = QLabel(self.groupBox_2)
self.label_2.setObjectName(u"label_2") self.label_2.setObjectName(u"label_2")
self.label_2.setGeometry(QRect(20, 70, 151, 16)) self.label_2.setGeometry(QRect(20, 70, 151, 16))
@ -77,6 +83,7 @@ class Ui_MainWindow(object):
self.bBiao = QPushButton(self.groupBox_3) self.bBiao = QPushButton(self.groupBox_3)
self.bBiao.setObjectName(u"bBiao") self.bBiao.setObjectName(u"bBiao")
self.bBiao.setGeometry(QRect(20, 30, 151, 24)) self.bBiao.setGeometry(QRect(20, 30, 151, 24))
self.bBiao.setStyleSheet(u"background-color:#409EFF; color: white; border-radius: 2px")
self.label_4 = QLabel(self.groupBox_3) self.label_4 = QLabel(self.groupBox_3)
self.label_4.setObjectName(u"label_4") self.label_4.setObjectName(u"label_4")
self.label_4.setGeometry(QRect(20, 70, 151, 16)) self.label_4.setGeometry(QRect(20, 70, 151, 16))
@ -96,6 +103,7 @@ class Ui_MainWindow(object):
self.bStart = QPushButton(self.groupBox_4) self.bStart = QPushButton(self.groupBox_4)
self.bStart.setObjectName(u"bStart") self.bStart.setObjectName(u"bStart")
self.bStart.setGeometry(QRect(300, 50, 75, 24)) self.bStart.setGeometry(QRect(300, 50, 75, 24))
self.bStart.setStyleSheet(u"background-color:#409EFF; color: white; border-radius: 2px")
self.label_6 = QLabel(self.groupBox_4) self.label_6 = QLabel(self.groupBox_4)
self.label_6.setObjectName(u"label_6") self.label_6.setObjectName(u"label_6")
self.label_6.setGeometry(QRect(10, 30, 251, 41)) self.label_6.setGeometry(QRect(10, 30, 251, 41))
@ -115,11 +123,13 @@ class Ui_MainWindow(object):
self.label_7 = QLabel(self.groupBox_5) self.label_7 = QLabel(self.groupBox_5)
self.label_7.setObjectName(u"label_7") self.label_7.setObjectName(u"label_7")
self.label_7.setGeometry(QRect(10, 20, 91, 16)) self.label_7.setGeometry(QRect(10, 20, 91, 16))
self.label_7.setFont(font1) font3 = QFont()
font3.setPointSize(10)
self.label_7.setFont(font3)
self.label_8 = QLabel(self.groupBox_5) self.label_8 = QLabel(self.groupBox_5)
self.label_8.setObjectName(u"label_8") self.label_8.setObjectName(u"label_8")
self.label_8.setGeometry(QRect(10, 40, 91, 16)) self.label_8.setGeometry(QRect(10, 40, 91, 16))
self.label_8.setFont(font1) self.label_8.setFont(font3)
self.line = QFrame(self.groupBox_5) self.line = QFrame(self.groupBox_5)
self.line.setObjectName(u"line") self.line.setObjectName(u"line")
self.line.setGeometry(QRect(10, 30, 561, 16)) self.line.setGeometry(QRect(10, 30, 561, 16))
@ -136,17 +146,19 @@ class Ui_MainWindow(object):
self.bRes1 = QPushButton(self.groupBox_5) self.bRes1 = QPushButton(self.groupBox_5)
self.bRes1.setObjectName(u"bRes1") self.bRes1.setObjectName(u"bRes1")
self.bRes1.setGeometry(QRect(520, 10, 51, 24)) self.bRes1.setGeometry(QRect(520, 10, 51, 24))
self.bRes1.setStyleSheet(u"background-color:#409EFF; color: white; border-radius: 2px")
self.bRes2 = QPushButton(self.groupBox_5) self.bRes2 = QPushButton(self.groupBox_5)
self.bRes2.setObjectName(u"bRes2") self.bRes2.setObjectName(u"bRes2")
self.bRes2.setGeometry(QRect(520, 40, 51, 24)) self.bRes2.setGeometry(QRect(520, 40, 51, 24))
self.label_9 = QLabel(self.centralwidget) self.label_9 = QLabel(self.centralwidget)
self.label_9.setObjectName(u"label_9") self.label_9.setObjectName(u"label_9")
self.label_9.setGeometry(QRect(430, 0, 171, 41)) self.label_9.setGeometry(QRect(260, 0, 341, 31))
font3 = QFont() font4 = QFont()
font3.setPointSize(14) font4.setFamilies([u"\u6977\u4f53"])
font3.setBold(True) font4.setPointSize(11)
font3.setItalic(False) font4.setBold(True)
self.label_9.setFont(font3) font4.setItalic(False)
self.label_9.setFont(font4)
self.label_9.setStyleSheet(u"color:white;") self.label_9.setStyleSheet(u"color:white;")
self.label_9.setAlignment(Qt.AlignRight|Qt.AlignTrailing|Qt.AlignVCenter) self.label_9.setAlignment(Qt.AlignRight|Qt.AlignTrailing|Qt.AlignVCenter)
self.label_9.setMargin(6) self.label_9.setMargin(6)
@ -165,7 +177,7 @@ class Ui_MainWindow(object):
# setupUi # setupUi
def retranslateUi(self, MainWindow): def retranslateUi(self, MainWindow):
MainWindow.setWindowTitle(QCoreApplication.translate("MainWindow", u"\u603b\u9662\u7f51\u7edc\u5de1\u67e5\u7cfb\u7edf", None)) MainWindow.setWindowTitle(QCoreApplication.translate("MainWindow", u"\u4e2d\u56fd\u5efa\u6750\u603b\u9662\u5ba3\u4f20\u5de5\u4f5c\u4fe1\u606f\u5316\u7ba1\u7406\u5e73\u53f0", None))
self.label.setText("") self.label.setText("")
self.groupBox.setTitle(QCoreApplication.translate("MainWindow", u"1.\u5fae\u4fe1\u516c\u4f17\u53f7\u4fe1\u606f\u6293\u53d6", None)) self.groupBox.setTitle(QCoreApplication.translate("MainWindow", u"1.\u5fae\u4fe1\u516c\u4f17\u53f7\u4fe1\u606f\u6293\u53d6", None))
self.bWechat.setText(QCoreApplication.translate("MainWindow", u"\u6253\u5f00\u5de5\u5177", None)) self.bWechat.setText(QCoreApplication.translate("MainWindow", u"\u6253\u5f00\u5de5\u5177", None))
@ -188,6 +200,6 @@ class Ui_MainWindow(object):
self.lRes2.setText("") self.lRes2.setText("")
self.bRes1.setText(QCoreApplication.translate("MainWindow", u"\u6253\u5f00", None)) self.bRes1.setText(QCoreApplication.translate("MainWindow", u"\u6253\u5f00", None))
self.bRes2.setText(QCoreApplication.translate("MainWindow", u"\u6253\u5f00", None)) self.bRes2.setText(QCoreApplication.translate("MainWindow", u"\u6253\u5f00", None))
self.label_9.setText(QCoreApplication.translate("MainWindow", u"\u603b\u9662\u7f51\u7edc\u5de1\u67e5\u7cfb\u7edf", None)) self.label_9.setText(QCoreApplication.translate("MainWindow", u"\u4e2d\u56fd\u5efa\u6750\u603b\u9662\u5ba3\u4f20\u5de5\u4f5c\u4fe1\u606f\u5316\u7ba1\u7406\u5e73\u53f0", None))
# retranslateUi # retranslateUi