from PyQt5.QtWidgets import QWidget, QHBoxLayout from qfluentwidgets import SwitchSettingCard from qfluentwidgets import FluentIcon as FIF from .json_edit import CodeEditor class SettingWidget(QWidget): def __init__(self, title="设置"): super().__init__() self.base = QHBoxLayout(self) c1 = CodeEditor() self.base.addWidget(c1) self.setLayout(self.base) # 设置布局