From ddae246d4609ff02bf44318130d07f74932ef3a7 Mon Sep 17 00:00:00 2001 From: punix Date: Fri, 27 Jun 2025 23:09:21 +0200 Subject: [PATCH] ui works now better with rename button --- Changelog | 12 +++++++++++- wirepy.py | 7 ++++--- wp_app_config.py | 2 +- 3 files changed, 16 insertions(+), 5 deletions(-) diff --git a/Changelog b/Changelog index e623ab7..7d99d8f 100644 --- a/Changelog +++ b/Changelog @@ -6,11 +6,21 @@ My standard System: Linux Mint 22 Cinnamon - os import in common_tools.py replaced by other methods - If Wire-Py already runs, prevent further start - for loops with lists replaced by List Comprehensions - - Tunnel in tk.canvas for modern look - Replace Download Button with Lx Tools installer ### Added 23-06-2025 + + - Header added for more modern desing + + - Sizes adjust the frames and labels improve + + - More modern desing for listbox, Address, Dns and Endpoint + + - ui works now better with rename button + + ### Added +23-06-2025 - all msg_window with MassageDialog replaced diff --git a/wirepy.py b/wirepy.py index 732df7b..0ddfbce 100755 --- a/wirepy.py +++ b/wirepy.py @@ -48,10 +48,10 @@ class Wirepy(tk.Tk): AppConfig.UI_CONFIG["resizable_window"][0], AppConfig.UI_CONFIG["resizable_window"][1], ) - """self.minsize( + self.minsize( AppConfig.UI_CONFIG["window_size"][0], AppConfig.UI_CONFIG["window_size"][1], - )""" + ) self.title(AppConfig.UI_CONFIG["window_title"]) self.tk.call("source", f"{AppConfig.SYSTEM_PATHS['tcl_path']}/water.tcl") @@ -301,7 +301,7 @@ class FrameWidgets(ttk.Frame): # Rename Frame self.rename_frame = ttk.Frame(self) self.rename_frame.grid(column=2, padx=10, row=3, sticky="nsew") - self.rename_frame.columnconfigure(0, weight=1) + self.rename_frame.columnconfigure(0, weight=2) self.rename_frame.columnconfigure(1, weight=1) # Label to Show active Tunnel @@ -415,6 +415,7 @@ class FrameWidgets(ttk.Frame): text=_("Rename"), state="disable", command=self.tl_rename, + width=15, ) self.btn_rename.grid(column=1, row=0, pady=10, sticky="nsew") diff --git a/wp_app_config.py b/wp_app_config.py index 135d0a0..b4ff7ed 100755 --- a/wp_app_config.py +++ b/wp_app_config.py @@ -65,7 +65,7 @@ class AppConfig: UI_CONFIG: Dict[str, Any] = { "window_title": "", "window_title2": "LogViewer", - "window_size": (558, 450), + "window_size": (590, 450), "font_family": "Ubuntu", "font_size": 11, "resizable_window": (True, True),