From feefc907fd40720d3d74472df0fc7378e02ca784 Mon Sep 17 00:00:00 2001 From: 965 Date: Thu, 25 May 2023 00:15:23 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=AE=9E=E8=B7=B5=E5=86=85?= =?UTF-8?q?=E5=AE=B9=EF=BC=88GUI=E8=AF=8D=E4=BA=91=E7=94=9F=E6=88=90?= =?UTF-8?q?=E5=99=A8=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Wordcloud_GUI/main.py | 23 +++ Wordcloud_GUI/main.ui | 337 ++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 360 insertions(+) create mode 100644 Wordcloud_GUI/main.py create mode 100644 Wordcloud_GUI/main.ui diff --git a/Wordcloud_GUI/main.py b/Wordcloud_GUI/main.py new file mode 100644 index 0000000..045cc8b --- /dev/null +++ b/Wordcloud_GUI/main.py @@ -0,0 +1,23 @@ +from PySide6.QtUiTools import QUiLoader +from PySide6.QtWidgets import QApplication +from PySide6.QtCore import QFile, QIODevice +import sys + + +if __name__ == "__main__": + app = QApplication(sys.argv) + + ui_file_name = "main.ui" + ui_file = QFile(ui_file_name) + if not ui_file.open(QIODevice.ReadOnly): + print(f"Cannot open {ui_file_name}: {ui_file.errorString()}") + sys.exit(-1) + loader = QUiLoader() + window = loader.load(ui_file) + ui_file.close() + if not window: + print(loader.errorString()) + sys.exit(-1) + window.show() + + sys.exit(app.exec()) \ No newline at end of file diff --git a/Wordcloud_GUI/main.ui b/Wordcloud_GUI/main.ui new file mode 100644 index 0000000..d205de2 --- /dev/null +++ b/Wordcloud_GUI/main.ui @@ -0,0 +1,337 @@ + + + MainDialog + + + + 0 + 0 + 501 + 453 + + + + + Adobe 黑体 Std R + + + + false + + + 词云配置 + + + + + 380 + 410 + 101 + 32 + + + + Qt::RightToLeft + + + Qt::Horizontal + + + QDialogButtonBox::Close + + + true + + + + + + 20 + 10 + 461 + 91 + + + + OpenHandCursor + + + + + 360 + 40 + 71 + 41 + + + + 13.500000000000000 + + + + + + 360 + 10 + 71 + 21 + + + + + Adobe 黑体 Std R + 10 + + + + 文字大小 + + + Qt::NoTextInteraction + + + + + + 30 + 40 + 71 + 41 + + + + 999 + + + 30 + + + + + + 30 + 10 + 71 + 21 + + + + + Adobe 黑体 Std R + 10 + + + + 最大词数 + + + Qt::NoTextInteraction + + + + + + 140 + 40 + 181 + 41 + + + + ArrowCursor + + + true + + + true + + + + + + 190 + 10 + 81 + 21 + + + + + Adobe 黑体 Std R + 10 + + + + 字体选择 + + + Qt::AlignCenter + + + Qt::NoTextInteraction + + + + + + + 20 + 130 + 461 + 91 + + + + + + + 20 + 110 + 81 + 21 + + + + + Adobe 黑体 Std R + 10 + + + + 文字预览 + + + Qt::NoTextInteraction + + + + + + 400 + 250 + 81 + 41 + + + + Browse.. + + + + + + 20 + 250 + 371 + 41 + + + + + + + 20 + 230 + 81 + 21 + + + + + Adobe 黑体 Std R + 10 + + + + 路径选择 + + + Qt::NoTextInteraction + + + + + + 20 + 320 + 461 + 81 + + + + + + + 20 + 300 + 81 + 21 + + + + + Adobe 黑体 Std R + 10 + + + + 日志 + + + Qt::NoTextInteraction + + + + + + 20 + 410 + 101 + 28 + + + + QDialogButtonBox::Apply + + + true + + + + + + + QuitBox + accepted() + MainDialog + accept() + + + 248 + 254 + + + 157 + 274 + + + + + QuitBox + rejected() + MainDialog + reject() + + + 316 + 260 + + + 286 + 274 + + + + +