Toolbar: Undo button next to Tidy Layout

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-07 09:45:55 +03:00
co-authored by Claude Opus 5.5
parent 8a0051380a
commit d0454688b3
2 changed files with 6 additions and 1 deletions
+5
View File
@@ -3038,6 +3038,11 @@ _btn_tidy = ttk.Button(toolbar, text="⊞", width=3, command=do_tidy_layout)
_btn_tidy.pack(side=tk.LEFT, padx=(3, 0))
_ToolTip(_btn_tidy, "Tidy Layout (Ctrl+W)")
# U+21B6: anticlockwise arrow, the usual undo glyph.
_btn_undo = ttk.Button(toolbar, text="↶", width=3, command=do_undo)
_btn_undo.pack(side=tk.LEFT, padx=(3, 0))
_ToolTip(_btn_undo, f"Undo ({accel_mod}+Z)")
ttk.Separator(toolbar, orient=tk.VERTICAL).pack(side=tk.LEFT, fill=tk.Y, padx=8, pady=2)
_btn_print = ttk.Button(toolbar, text="🖨", width=3, command=wiresheet.print_sheet)