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