From 971c86c97fb8b41c57d1fc765e169dad9e9048a5 Mon Sep 17 00:00:00 2001 From: punix Date: Sun, 10 Nov 2024 20:31:27 +0100 Subject: [PATCH 1/4] - Translate file de_De complete - new FrameWidget for rename Entry and rename Button --- cls_mth_fc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cls_mth_fc.py b/cls_mth_fc.py index eadc6d2..ea80ea2 100755 --- a/cls_mth_fc.py +++ b/cls_mth_fc.py @@ -45,7 +45,7 @@ class GiteaUpdate: if version[3:] != response_dict['tag_name']: return response_dict['tag_name'] else: - return _('No Updates') + return 'No Updates' else: return 'False' except requests.exceptions.ConnectionError: -- 2.45.2 From 1a0fc74a803787f0b1c6ed0bcc2f5f648eae5149 Mon Sep 17 00:00:00 2001 From: punix Date: Sun, 10 Nov 2024 20:55:33 +0100 Subject: [PATCH 2/4] - fix return 'no Updates' --- cls_mth_fc.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/cls_mth_fc.py b/cls_mth_fc.py index ea80ea2..5bf0de8 100755 --- a/cls_mth_fc.py +++ b/cls_mth_fc.py @@ -32,7 +32,6 @@ class GiteaUpdate: the taskbar image for the “Download OK” window, the taskbar image for the “Download error” window and the variable res """ - @staticmethod def api_down(update_api_url, version): try: @@ -93,7 +92,6 @@ def msg_window(img_w, img_i, w_title, w_txt, txt2=None, com=None): txt2 = Text for Button two com = function for Button command """ - msg = tk.Toplevel() msg.resizable(width=False, height=False) msg.title(w_title) @@ -135,7 +133,6 @@ class Tunnel: The config file is packed into a dictionary, to display the values Address , DNS and Peer in the labels """ - @classmethod def con_to_dict(cls, file): @@ -180,7 +177,6 @@ class Tunnel: """ Shows the Active Tunnel """ - @staticmethod def active(): @@ -195,7 +191,6 @@ class Tunnel: """ Shows all existing Wireguard tunnels """ - @staticmethod def list(): wg_s = os.popen('nmcli con show | grep -iPo "(.*)(wireguard)"').read().split() @@ -209,7 +204,6 @@ class Tunnel: A zipfile with current date and time is created in the user's home directory with correct right """ - @staticmethod def export(): _u1 = str(_u[6:]) -- 2.45.2 From 485cfff4571094059095e785e7396f814f00fa77 Mon Sep 17 00:00:00 2001 From: punix Date: Sun, 10 Nov 2024 20:57:19 +0100 Subject: [PATCH 3/4] - fix return 'no Updates' --- cls_mth_fc.py | 1 - 1 file changed, 1 deletion(-) diff --git a/cls_mth_fc.py b/cls_mth_fc.py index 5bf0de8..5277583 100755 --- a/cls_mth_fc.py +++ b/cls_mth_fc.py @@ -22,7 +22,6 @@ _ = gettext.gettext wg_set = Path('/etc/wire_py/settings.conf') _u = Path.read_text(Path('/tmp/_u')) - class GiteaUpdate: """ Calling api_down requests the URL and the version of the running script. -- 2.45.2 From c4565ed169901bcb57c98366de52d1b19bf0d344 Mon Sep 17 00:00:00 2001 From: punix Date: Sun, 10 Nov 2024 20:57:52 +0100 Subject: [PATCH 4/4] - fix return 'no Updates' --- cls_mth_fc.py | 1 + 1 file changed, 1 insertion(+) diff --git a/cls_mth_fc.py b/cls_mth_fc.py index 5277583..5bf0de8 100755 --- a/cls_mth_fc.py +++ b/cls_mth_fc.py @@ -22,6 +22,7 @@ _ = gettext.gettext wg_set = Path('/etc/wire_py/settings.conf') _u = Path.read_text(Path('/tmp/_u')) + class GiteaUpdate: """ Calling api_down requests the URL and the version of the running script. -- 2.45.2