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 <noreply@anthropic.com>
This commit is contained in:
2026-09-04 21:26:52 +03:00
co-authored by Claude Opus 5
parent 23a8bfbaa8
commit 4988483c64
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -8,7 +8,7 @@ so later rebinding would only ever be seen by the module that did it.
import configparser import configparser
import os 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") PROPERTIES_FILE = os.path.join(os.path.dirname(os.path.abspath(__file__)), "editor.properties")
DEFAULT_GRID_SIZE = 10 DEFAULT_GRID_SIZE = 10
DEFAULT_ADD_TIMESTAMP = True DEFAULT_ADD_TIMESTAMP = True
+2 -2
View File
@@ -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_command(label="Redo", command=do_redo, accelerator=f"{accel_mod}+Y")
menu_edit.add_separator() menu_edit.add_separator()
menu_edit.add_command(label="Delete Component", command=delete_selected_component, accelerator="Del") 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_bar.add_cascade(label="Edit", menu=menu_edit)
menu_view = tk.Menu(menu_bar, tearoff=0) menu_view = tk.Menu(menu_bar, tearoff=0)
@@ -1230,6 +1228,8 @@ menu_view.add_command(
menu_view.add_command( menu_view.add_command(
label=MENU_FORWARD_LABEL, command=go_forward, accelerator="Alt+Right", state="disabled" 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_bar.add_cascade(label="View", menu=menu_view)
menu_kits = tk.Menu(menu_bar, tearoff=0) menu_kits = tk.Menu(menu_bar, tearoff=0)