From 26ceec9fdfe3bfe002ed6cd0200c759119f1215f Mon Sep 17 00:00:00 2001 From: moyanj <1561515308@qq.com> Date: Fri, 13 Sep 2024 22:50:29 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84=E5=88=9D=E5=A7=8B=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- interface/init/__init__.py | 2 ++ interface/init/about.py | 7 +++++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/interface/init/__init__.py b/interface/init/__init__.py index b4a308b..52700cf 100644 --- a/interface/init/__init__.py +++ b/interface/init/__init__.py @@ -2,6 +2,7 @@ from PyQt5.QtWidgets import QWidget, QVBoxLayout, QApplication, QDesktopWidget from PyQt5.QtCore import Qt from qfluentwidgets import PushButton, SubtitleLabel, Theme, setTheme import app.env as env +from .about import AboutWidget class InitWindow(QWidget): def __init__(self, main_window): @@ -32,6 +33,7 @@ class InitWindow(QWidget): self.layout.addWidget(self.start_button) # 将组件添加到布局中 self.layout.addWidget(self.titleLabel) + self.layout.addWidget(AboutWidget()) # 应用布局 self.setLayout(self.layout) diff --git a/interface/init/about.py b/interface/init/about.py index 39a3492..95983aa 100644 --- a/interface/init/about.py +++ b/interface/init/about.py @@ -1,5 +1,8 @@ -from PyQt5.QtWidgets import QWidget +from PyQt5.QtWidgets import QWidget, QVBoxLayout, QLabel class AboutWidget(QWidget): def __init__(self, typex="init"): - \ No newline at end of file + super().__init__() + self.base = QVBoxLayout() + self.base.addWidget(QLabel("About")) + self.setLayout(self.base) \ No newline at end of file