From 1b6c170d6ce94e1e6f7d7e4f4b72662bb4eed30f Mon Sep 17 00:00:00 2001 From: KenanZhu <3471685733@qq.com> Date: Fri, 10 Jul 2026 10:07:38 +0800 Subject: [PATCH] =?UTF-8?q?style(ReserveFlow):=20=E6=8F=90=E5=8F=96?= =?UTF-8?q?=E5=AE=B9=E5=99=A8=E7=B1=BB=E7=9A=84UI=E8=AE=BE=E7=BD=AE?= =?UTF-8?q?=E5=88=B0setupUi=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/gui/ALAutoScriptOrchDialog/_helpers.py | 25 +++++++++++++++++++--- 1 file changed, 22 insertions(+), 3 deletions(-) diff --git a/src/gui/ALAutoScriptOrchDialog/_helpers.py b/src/gui/ALAutoScriptOrchDialog/_helpers.py index 4000335..66a74cc 100644 --- a/src/gui/ALAutoScriptOrchDialog/_helpers.py +++ b/src/gui/ALAutoScriptOrchDialog/_helpers.py @@ -104,6 +104,7 @@ class _DateInputContainer(QWidget): ): super().__init__(parent) + self.setupUi() def setupUi( @@ -153,10 +154,16 @@ class _TimeInputContainer(QWidget): ): super().__init__(parent) + + self.setupUi() + + def setupUi( + self + ): + self.TimeEdit = QTimeEdit(self) self.TimeEdit.setDisplayFormat("HH:mm") self.TimeEdit.setFixedHeight(25) - Layout = QHBoxLayout(self) Layout.setContentsMargins(0, 0, 0, 0) Layout.addWidget(self.TimeEdit) @@ -176,6 +183,13 @@ class _DateOffsetContainer(QWidget): ): super().__init__(parent) + + self.setupUi() + + def setupUi( + self + ): + self.SpinBox = QSpinBox(self) self.SpinBox.setRange(0, 99999) self.SpinBox.setFixedHeight(25) @@ -183,7 +197,6 @@ class _DateOffsetContainer(QWidget): for display, data in DATE_OFFSET_OPTIONS: self.UnitCombo.addItem(display, data) self.UnitCombo.setFixedHeight(25) - Layout = QHBoxLayout(self) Layout.setContentsMargins(0, 0, 0, 0) Layout.setSpacing(4) @@ -220,11 +233,17 @@ class _TimeOffsetContainer(QWidget): ): super().__init__(parent) + + self.setupUi() + + def setupUi( + self + ): + self.SpinBox = QSpinBox(self) self.SpinBox.setRange(0, 99999) self.SpinBox.setSuffix(" 小时") self.SpinBox.setFixedHeight(25) - Layout = QHBoxLayout(self) Layout.setContentsMargins(0, 0, 0, 0) Layout.addWidget(self.SpinBox)