Compare commits

..

No commits in common. "c4565ed169901bcb57c98366de52d1b19bf0d344" and "cf71eae7d360f9010fcf339b8664ba0b1a6845a1" have entirely different histories.

View File

@ -32,6 +32,7 @@ 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:
@ -44,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:
@ -92,6 +93,7 @@ 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)
@ -133,6 +135,7 @@ 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):
@ -177,6 +180,7 @@ class Tunnel:
"""
Shows the Active Tunnel
"""
@staticmethod
def active():
@ -191,6 +195,7 @@ class Tunnel:
"""
Shows all existing Wireguard tunnels
"""
@staticmethod
def list():
wg_s = os.popen('nmcli con show | grep -iPo "(.*)(wireguard)"').read().split()
@ -204,6 +209,7 @@ 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:])