🐛 fix(gui): add time import and fix left panel layout scaling

- Add missing 'import time' for _run_steps_worker
- Fix left panel layout: remove rowspan=2 to prevent overflow
- Left panel now correctly occupies only lower half of window
This commit is contained in:
Jeremy Shen
2026-06-10 09:46:28 +08:00
parent 62609b6e80
commit 0af388a8f6
+3 -2
View File
@@ -8,6 +8,7 @@ from __future__ import annotations
import os import os
import threading import threading
import time
import tkinter as tk import tkinter as tk
from pathlib import Path from pathlib import Path
from typing import Callable from typing import Callable
@@ -145,7 +146,7 @@ class MainWindow(ctk.CTk):
# ── Left Panel: Workflow Steps ── # ── Left Panel: Workflow Steps ──
left_frame = ctk.CTkFrame(main_frame) left_frame = ctk.CTkFrame(main_frame)
left_frame.grid(row=0, column=0, rowspan=2, sticky="nsew", padx=(0, PADDING)) left_frame.grid(row=1, column=0, sticky="nsew", padx=(0, PADDING))
left_frame.grid_rowconfigure(3, weight=1) left_frame.grid_rowconfigure(3, weight=1)
left_frame.grid_columnconfigure(0, weight=1) left_frame.grid_columnconfigure(0, weight=1)
@@ -154,7 +155,7 @@ class MainWindow(ctk.CTk):
# ── Right Panel: Configuration ── # ── Right Panel: Configuration ──
right_frame = ctk.CTkFrame(main_frame) right_frame = ctk.CTkFrame(main_frame)
right_frame.grid(row=0, column=1, sticky="nsew", padx=(PADDING, 0)) right_frame.grid(row=1, column=1, sticky="nsew", padx=(PADDING, 0))
right_frame.grid_rowconfigure(4, weight=1) right_frame.grid_rowconfigure(4, weight=1)
self._build_config_panel(right_frame) self._build_config_panel(right_frame)