Merge branch 'main' of github.com:moyanj/HoYoCenter into main
This commit is contained in:
commit
7794ccf886
|
@ -2,9 +2,9 @@ from PyQt5.QtWidgets import QWidget
|
||||||
from qfluentwidgets import VBoxLayout, LargeTitleLabel
|
from qfluentwidgets import VBoxLayout, LargeTitleLabel
|
||||||
|
|
||||||
class MainWidget(QWidget):
|
class MainWidget(QWidget):
|
||||||
def __init__(self, title="主页"):
|
def __init__(self):
|
||||||
super().__init__()
|
super().__init__()
|
||||||
self.base = VBoxLayout(self)
|
self.base = VBoxLayout(self)
|
||||||
|
|
||||||
self.base.addWidget(LargeTitleLabel(title)) # 创建按钮并添加到布局
|
self.base.addWidget(LargeTitleLabel("HoYoCenter")) # 创建按钮并添加到布局
|
||||||
self.setLayout(self.base) # 设置布局
|
self.setLayout(self.base) # 设置布局
|
Loading…
Reference in New Issue
Block a user