完善初始化
This commit is contained in:
parent
08c625d991
commit
26ceec9fdf
|
@ -2,6 +2,7 @@ from PyQt5.QtWidgets import QWidget, QVBoxLayout, QApplication, QDesktopWidget
|
||||||
from PyQt5.QtCore import Qt
|
from PyQt5.QtCore import Qt
|
||||||
from qfluentwidgets import PushButton, SubtitleLabel, Theme, setTheme
|
from qfluentwidgets import PushButton, SubtitleLabel, Theme, setTheme
|
||||||
import app.env as env
|
import app.env as env
|
||||||
|
from .about import AboutWidget
|
||||||
|
|
||||||
class InitWindow(QWidget):
|
class InitWindow(QWidget):
|
||||||
def __init__(self, main_window):
|
def __init__(self, main_window):
|
||||||
|
@ -32,6 +33,7 @@ class InitWindow(QWidget):
|
||||||
self.layout.addWidget(self.start_button)
|
self.layout.addWidget(self.start_button)
|
||||||
# 将组件添加到布局中
|
# 将组件添加到布局中
|
||||||
self.layout.addWidget(self.titleLabel)
|
self.layout.addWidget(self.titleLabel)
|
||||||
|
self.layout.addWidget(AboutWidget())
|
||||||
|
|
||||||
# 应用布局
|
# 应用布局
|
||||||
self.setLayout(self.layout)
|
self.setLayout(self.layout)
|
||||||
|
|
|
@ -1,5 +1,8 @@
|
||||||
from PyQt5.QtWidgets import QWidget
|
from PyQt5.QtWidgets import QWidget, QVBoxLayout, QLabel
|
||||||
|
|
||||||
class AboutWidget(QWidget):
|
class AboutWidget(QWidget):
|
||||||
def __init__(self, typex="init"):
|
def __init__(self, typex="init"):
|
||||||
|
super().__init__()
|
||||||
|
self.base = QVBoxLayout()
|
||||||
|
self.base.addWidget(QLabel("About"))
|
||||||
|
self.setLayout(self.base)
|
Loading…
Reference in New Issue
Block a user