From fba8e933ad770f0819b341d0a056a844f860ffe6 Mon Sep 17 00:00:00 2001 From: moyan <1561515308@qq.com> Date: Mon, 9 Sep 2024 18:59:53 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9main=E7=95=8C=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- interface/main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/interface/main.py b/interface/main.py index 419547f..abe2e18 100644 --- a/interface/main.py +++ b/interface/main.py @@ -2,9 +2,9 @@ from PyQt5.QtWidgets import QWidget from qfluentwidgets import VBoxLayout, LargeTitleLabel class MainWidget(QWidget): - def __init__(self, title="主页"): + def __init__(self): super().__init__() self.base = VBoxLayout(self) - self.base.addWidget(LargeTitleLabel(title)) # 创建按钮并添加到布局 + self.base.addWidget(LargeTitleLabel("HoYoCenter")) # 创建按钮并添加到布局 self.setLayout(self.base) # 设置布局 \ No newline at end of file