HoYoCenter/interface/setting.py
2024-09-08 20:57:25 +08:00

16 lines
424 B
Python

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) # 设置布局