初步实现初始化窗口

This commit is contained in:
moyanj 2024-09-09 11:30:20 +08:00
parent c49d38cdd5
commit 203ce3300a
2 changed files with 17 additions and 0 deletions

14
interface/init.py Normal file
View File

@ -0,0 +1,14 @@
from PyQt5.QtWidgets import QWidget, QVBoxLayout, QApplication
from qfluentwidgets import MessageBoxBase, SubtitleLabel
class InitWindow(QWidget):
""" Custom message box """
def __init__(self):
super().__init__()
self.layout = QVBoxLayout(self)
self.titleLabel = SubtitleLabel('初始化')
# 将组件添加到布局中
self.layout.addWidget(self.titleLabel)
self.setLayout(self.layout)

View File

@ -4,6 +4,7 @@ from qfluentwidgets import FluentIcon as FIF
from interface.main import MainWidget
from interface.setting import SettingWidget
from interface.init import InitWindow
import sys
# 主窗口类
@ -25,6 +26,8 @@ class MainWindow(FluentWindow):
self.init_ui()
def init_ui(self):
self.w = InitWindow()
self.w.show()
# 初始化菜单
self.init_menu()