From 88ffc7ab30e92047456f0e813aeab4f9b98da107 Mon Sep 17 00:00:00 2001 From: Rahix Date: Mon, 19 Aug 2024 02:44:28 +0200 Subject: [PATCH] Layout tweaks --- src/main.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main.py b/src/main.py index 9a18d2e..bfa5e3c 100644 --- a/src/main.py +++ b/src/main.py @@ -34,7 +34,7 @@ def main() -> None: toc_tree = ttk.Treeview(frm, columns=columns, show="headings") toc_tree.heading("title", text="Title") toc_tree.heading("page", text="Page") - toc_tree.grid(column=0, row=1) + toc_tree.grid(column=0, row=0, rowspan=2, sticky="NS", padx=5, pady=5) for lvl, t, p in toc: toc_tree.insert("", tkinter.END, values=(" " * lvl + t, str(p))) @@ -67,8 +67,8 @@ def main() -> None: CURRENT_PAGE -= 1 load_page(CURRENT_PAGE) - ttk.Button(frm, text="Previous", command=previous_page).grid(column=1, row=1) - ttk.Button(frm, text="Next", command=next_page).grid(column=3, row=1) + ttk.Button(frm, text="Previous", command=previous_page).grid(column=1, row=1, sticky="NS", padx=5, pady=5) + ttk.Button(frm, text="Next", command=next_page).grid(column=3, row=1, sticky="NS", padx=5, pady=5) load_page(CURRENT_PAGE)