ui works now better with rename button

This commit is contained in:
2025-06-27 23:09:21 +02:00
parent c8d439d428
commit ddae246d46
3 changed files with 16 additions and 5 deletions

View File

@ -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

View File

@ -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")

View File

@ -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),