9 lines
304 B
Python
9 lines
304 B
Python
from PyQt5.QtWidgets import QWidget
|
|
from qfluentwidgets import PushButton, VBoxLayout
|
|
|
|
class MainWidget(QWidget):
|
|
def __init__(self, title="主页"):
|
|
super().__init__()
|
|
|
|
PushButton(title, self) # 创建按钮并添加到布局
|
|
self.setLayout(VBoxLayout(self)) # 设置布局 |