refactor: 更新时间戳,优化界面元素的布局和格式
This commit is contained in:
1 parent
cdada11f81
commit
c6d404834e
2 files changed
+22
-16
No files matched your search
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"updated_ts": 1767440958.0048747,
|
||||
"updated_ts": 1767442907.6341074,
|
||||
"reason": "startup_clear",
|
||||
"room_pos": 0,
|
||||
"current_room_title": "",
|
||||
|
||||
+21
-15
@@ -2213,21 +2213,24 @@ def main():
|
||||
|
||||
realtime_tools = ttk.Frame(right)
|
||||
realtime_tools.pack(fill=X, padx=8, pady=(4, 0))
|
||||
ttk.Checkbutton(
|
||||
realtime_tools, text="显示动作流", variable=show_actions_var
|
||||
).pack(side=LEFT, padx=(0, 8))
|
||||
ttk.Checkbutton(
|
||||
realtime_tools, text="显示截图", variable=show_screenshot_var
|
||||
).pack(side=LEFT, padx=(0, 8))
|
||||
ttk.Checkbutton(
|
||||
realtime_tools, text="自动滚动", variable=auto_scroll_var
|
||||
).pack(side=LEFT, padx=(0, 8))
|
||||
ttk.Checkbutton(realtime_tools, text="显示动作流", variable=show_actions_var).pack(
|
||||
side=LEFT, padx=(0, 8)
|
||||
)
|
||||
ttk.Checkbutton(realtime_tools, text="显示截图", variable=show_screenshot_var).pack(
|
||||
side=LEFT, padx=(0, 8)
|
||||
)
|
||||
ttk.Checkbutton(realtime_tools, text="自动滚动", variable=auto_scroll_var).pack(
|
||||
side=LEFT, padx=(0, 8)
|
||||
)
|
||||
# forward-declare handler to satisfy linters; real function defined later
|
||||
open_realtime_viewer = lambda: None
|
||||
|
||||
ttk.Button(realtime_tools, text="实时查看", width=10, command=lambda: open_realtime_viewer()).pack(
|
||||
side=LEFT, padx=(8, 0)
|
||||
)
|
||||
ttk.Button(
|
||||
realtime_tools,
|
||||
text="实时查看",
|
||||
width=10,
|
||||
command=lambda: open_realtime_viewer(),
|
||||
).pack(side=LEFT, padx=(8, 0))
|
||||
|
||||
log_tab = ttk.Frame(notebook)
|
||||
preview_tab = ttk.Frame(notebook)
|
||||
@@ -2257,8 +2260,6 @@ def main():
|
||||
realtime_frame = ttk.Frame(realtime_tab)
|
||||
realtime_frame.pack(fill=BOTH, expand=True, padx=8, pady=8)
|
||||
|
||||
|
||||
|
||||
# 截图预览区域(根据选项显示/隐藏)
|
||||
image_label = ttk.Label(realtime_frame)
|
||||
image_label.pack(fill=X)
|
||||
@@ -2439,7 +2440,9 @@ def main():
|
||||
list_frame.pack(fill=BOTH, expand=True, padx=6, pady=6)
|
||||
listbox = tk.Listbox(list_frame, height=12)
|
||||
listbox.pack(side=LEFT, fill=BOTH, expand=True)
|
||||
scrollbar = ttk.Scrollbar(list_frame, orient=tk.VERTICAL, command=listbox.yview)
|
||||
scrollbar = ttk.Scrollbar(
|
||||
list_frame, orient=tk.VERTICAL, command=listbox.yview
|
||||
)
|
||||
scrollbar.pack(side=RIGHT, fill=Y)
|
||||
listbox.configure(yscrollcommand=scrollbar.set)
|
||||
|
||||
@@ -4636,6 +4639,9 @@ def main():
|
||||
on_line(f"[中奖记录] 打开目录失败:{e}")
|
||||
|
||||
ttk.Button(win_record_top, text="打开目录", command=open_win_folder).pack(side=LEFT)
|
||||
ttk.Button(
|
||||
win_record_top, text="实时查看", command=lambda: open_realtime_viewer()
|
||||
).pack(side=LEFT, padx=(8, 0))
|
||||
|
||||
# 误识别记录管理
|
||||
false_positive_frame = ttk.LabelFrame(win_record_right, text="误识别记录管理")
|
||||
|
||||
Reference in new issue
Block a user