Move widget tree pane to the right side of Page Editor

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-09-22 21:35:57 +03:00
co-authored by Claude Opus 4.6
parent cbf1010c16
commit 74c169a401
2 changed files with 5 additions and 5 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.120" VERSION = "0.0.0.121"
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
+4 -4
View File
@@ -203,14 +203,14 @@ class OxPageViewPanel:
body = ttk.PanedWindow(self.frame, orient=tk.HORIZONTAL) body = ttk.PanedWindow(self.frame, orient=tk.HORIZONTAL)
body.pack(fill=tk.BOTH, expand=True) body.pack(fill=tk.BOTH, expand=True)
tree_frame = ttk.Frame(body)
self._build_widget_tree(tree_frame)
body.add(tree_frame, weight=0)
canvas_frame = ttk.Frame(body) canvas_frame = ttk.Frame(body)
self._build_canvas(canvas_frame) self._build_canvas(canvas_frame)
body.add(canvas_frame, weight=1) body.add(canvas_frame, weight=1)
tree_frame = ttk.Frame(body)
self._build_widget_tree(tree_frame)
body.add(tree_frame, weight=0)
def _build_widget_tree(self, parent): def _build_widget_tree(self, parent):
ttk.Label(parent, text="Widgets", font=("TkDefaultFont", 9, "bold")).pack( ttk.Label(parent, text="Widgets", font=("TkDefaultFont", 9, "bold")).pack(
anchor="w", padx=4, pady=(4, 2)) anchor="w", padx=4, pady=(4, 2))