From 8f5196cb0493eedcaca05d9925f3ab7cccf9ce58 Mon Sep 17 00:00:00 2001 From: MrXnneHang Date: Mon, 15 Jul 2024 10:23:25 +0800 Subject: [PATCH] add_ico --- MainWindowUI.py | 4 ++-- yasumi_clock.py | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/MainWindowUI.py b/MainWindowUI.py index 16bedf2..799b8d9 100644 --- a/MainWindowUI.py +++ b/MainWindowUI.py @@ -42,13 +42,13 @@ def __init__(self): self.initUI() def initUI(self): - self.setWindowTitle('Main Window') + self.setWindowTitle('Yasumi Clock v1.1') self.setGeometry(self.main_window_pos[0], self.main_window_pos[1], self.main_window_pos[2], self.main_window_pos[3]) # Buttons - self.startdrawButton = PrimaryPushButton('Draw Main Window', self) + self.startdrawButton = PrimaryPushButton('布局', self) self.startdrawButton.setGeometry(QtCore.QRect(self.draw_button_pos[0], self.draw_button_pos[1], self.draw_button_pos[2], diff --git a/yasumi_clock.py b/yasumi_clock.py index 0862cdc..36c58e2 100644 --- a/yasumi_clock.py +++ b/yasumi_clock.py @@ -83,6 +83,7 @@ def resetTime(self): def showDrawMainWindow(self): child_window_pos = self.list_main_button_pos() self.selectionWindow = ManualSelectionWindow(self.main_window_pos,child_window_pos) + self.selectionWindow.setWindowIcon(QIcon(mainWindow.src_config["icon"])) self.selectionWindow.show() def startFanqie(self): if not self.timerRunning: