15 lines
446 B
Python
15 lines
446 B
Python
|
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)
|