From 551951dc01be1c7115b339c10af23da968ed1d38 Mon Sep 17 00:00:00 2001 From: Your Name Date: Mon, 5 Jan 2026 22:37:17 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BC=98=E5=8C=96=E8=AE=BE=E5=A4=87?= =?UTF-8?q?=E5=88=B7=E6=96=B0=E5=92=8C=E5=AE=9E=E6=97=B6=E6=9F=A5=E7=9C=8B?= =?UTF-8?q?=E6=8C=89=E9=92=AE=E7=9A=84=E5=88=9B=E5=BB=BA=E6=96=B9=E5=BC=8F?= =?UTF-8?q?=EF=BC=8C=E6=8F=90=E9=AB=98=E4=BB=A3=E7=A0=81=E5=8F=AF=E8=AF=BB?= =?UTF-8?q?=E6=80=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- gui/gui_app.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/gui/gui_app.py b/gui/gui_app.py index 6808511..0d4cfdd 100644 --- a/gui/gui_app.py +++ b/gui/gui_app.py @@ -305,9 +305,8 @@ def main(): elif not devs: on_line("[设备] adb 可用,但未发现 device 状态设备(可能未授权/未连接)") - ttk.Button(top, text="刷新设备", command=refresh_devices).pack( - side=LEFT, padx=(0, 20) - ) + refresh_devices_btn = ttk.Button(top, text="刷新设备", command=refresh_devices) + refresh_devices_btn.pack(side=LEFT, padx=(0, 20)) # 配置区(提前读取配置,供后续使用) cfg = read_config() @@ -2233,7 +2232,7 @@ def main(): # forward-declare handler to satisfy linters; real function defined later _open_realtime_viewer_impl = None - ttk.Button( + realtime_view_btn = ttk.Button( realtime_tools, text="实时查看", width=10, @@ -2242,7 +2241,8 @@ def main(): if callable(_open_realtime_viewer_impl) else None ), - ).pack(side=LEFT, padx=(8, 0)) + ) + realtime_view_btn.pack(side=LEFT, padx=(8, 0)) log_tab = ttk.Frame(notebook) preview_tab = ttk.Frame(notebook)