From 4988483c64952404f0158b0bf368319e049dd7c6 Mon Sep 17 00:00:00 2001 From: Arda Aydin Date: Fri, 4 Sep 2026 21:26:52 +0300 Subject: [PATCH] Tidy Layout moves from the Edit menu to View It re-flows what is on screen rather than editing the document, which is where the rest of the sheet's presentation controls now live. Co-Authored-By: Claude Opus 5 --- app_state.py | 2 +- main.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app_state.py b/app_state.py index fc02231..11c3bdf 100644 --- a/app_state.py +++ b/app_state.py @@ -8,7 +8,7 @@ so later rebinding would only ever be seen by the module that did it. import configparser import os -VERSION = "0.0.0.029" +VERSION = "0.0.0.030" PROPERTIES_FILE = os.path.join(os.path.dirname(os.path.abspath(__file__)), "editor.properties") DEFAULT_GRID_SIZE = 10 DEFAULT_ADD_TIMESTAMP = True diff --git a/main.py b/main.py index 4457335..07e8cd1 100644 --- a/main.py +++ b/main.py @@ -1211,8 +1211,6 @@ menu_edit.add_command(label="Undo", command=do_undo, accelerator=f"{accel_mod}+Z menu_edit.add_command(label="Redo", command=do_redo, accelerator=f"{accel_mod}+Y") menu_edit.add_separator() menu_edit.add_command(label="Delete Component", command=delete_selected_component, accelerator="Del") -menu_edit.add_separator() -menu_edit.add_command(label="Tidy Layout", command=do_tidy_layout) menu_bar.add_cascade(label="Edit", menu=menu_edit) menu_view = tk.Menu(menu_bar, tearoff=0) @@ -1230,6 +1228,8 @@ menu_view.add_command( menu_view.add_command( label=MENU_FORWARD_LABEL, command=go_forward, accelerator="Alt+Right", state="disabled" ) +menu_view.add_separator() +menu_view.add_command(label="Tidy Layout", command=do_tidy_layout) menu_bar.add_cascade(label="View", menu=menu_view) menu_kits = tk.Menu(menu_bar, tearoff=0)