修改main界面

This commit is contained in:
moyan 2024-09-09 18:59:53 +08:00
parent 11e843bff3
commit fba8e933ad

View File

@ -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) # 设置布局