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