From 2fac03a927a14a3b714402ae827c1c5f8e13d7f3 Mon Sep 17 00:00:00 2001 From: punix Date: Fri, 8 Nov 2024 21:32:45 +0100 Subject: [PATCH 01/13] - methods from class MainWindow move to class FrameWidgets for active color_label when theme change - optimize columnconfigure, rowconfigure in class MainWindow and FrameWidgets - add new Frame for Widgets on Bottom - optimize from tkinter * to from tkinter import filedialog, ttk, TclError --- wg_main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wg_main.py b/wg_main.py index e2cc83d..4bc777e 100755 --- a/wg_main.py +++ b/wg_main.py @@ -22,7 +22,7 @@ class MainWindow(tk.Tk): self.y_height = 383 self.monitor_center_x = self.winfo_screenwidth() / 2 - (self.x_width / 2) self.monitor_center_y = self.winfo_screenheight() / 2 - (self.y_height / 2) - self.resizable(width=True, height=True) + self.resizable(width=False, height=False) self.title('Wire-Py') self.geometry('%dx%d+%d+%d' % (self.x_width, self.y_height, self.monitor_center_x, self.monitor_center_y)) self.columnconfigure(0, weight=1) -- 2.45.2 From c470783ff294bd7e0421c9871a26e83aaa430897 Mon Sep 17 00:00:00 2001 From: punix Date: Fri, 8 Nov 2024 21:39:28 +0100 Subject: [PATCH 02/13] - methods from class MainWindow move to class FrameWidgets for active color_label when theme change - optimize columnconfigure, rowconfigure in class MainWindow and FrameWidgets - add new Frame for Widgets on Bottom - optimize from tkinter * to from tkinter import filedialog, ttk, TclError --- wg_main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wg_main.py b/wg_main.py index 4bc777e..e2f47b6 100755 --- a/wg_main.py +++ b/wg_main.py @@ -1097,7 +1097,7 @@ class MyToolTip(tk.Toplevel): if not tips: AUTO_CLEAR_TIME = 0 else: - AUTO_CLEAR_TIME = 900 # Millisecond. (1/90 sec.) + AUTO_CLEAR_TIME = 2000 # Millisecond. (1/200 sec.) def __init__(self, x_pos, y_pos, message=None, auto_clear=True): self.x_pos = x_pos -- 2.45.2 From e9814f2b6084c1ace1fd35f2c9c3aa80693d9072 Mon Sep 17 00:00:00 2001 From: punix Date: Sat, 9 Nov 2024 17:09:23 +0100 Subject: [PATCH 03/13] - Preparation for language translation part 1 - separate folder for general icons - install edit for new dir lx-icons --- .idea/workspace.xml | 126 +++++++++++------------ Changelog | 8 +- wg_func.py => cls_mth_fc.py | 65 ++++++------ install | 16 +-- lx-icons/128/error.png | Bin 0 -> 5872 bytes lx-icons/128/info.png | Bin 0 -> 5790 bytes lx-icons/256/error.png | Bin 0 -> 12081 bytes lx-icons/256/info.png | Bin 0 -> 10319 bytes lx-icons/32/error.png | Bin 0 -> 5215 bytes lx-icons/32/info.png | Bin 0 -> 1594 bytes lx-icons/48/error.png | Bin 0 -> 5813 bytes lx-icons/48/info.png | Bin 0 -> 2240 bytes lx-icons/64/error.png | Bin 0 -> 2793 bytes lx-icons/64/info.png | Bin 0 -> 2801 bytes wg_main.py | 199 ++++++++++++++++++------------------ 15 files changed, 213 insertions(+), 201 deletions(-) rename wg_func.py => cls_mth_fc.py (81%) create mode 100644 lx-icons/128/error.png create mode 100644 lx-icons/128/info.png create mode 100644 lx-icons/256/error.png create mode 100644 lx-icons/256/info.png create mode 100644 lx-icons/32/error.png create mode 100644 lx-icons/32/info.png create mode 100644 lx-icons/48/error.png create mode 100644 lx-icons/48/info.png create mode 100644 lx-icons/64/error.png create mode 100644 lx-icons/64/info.png diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 0f8ea06..bc16aa9 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -4,15 +4,20 @@