Installer now with query and remove
icons merged
@ -6,7 +6,13 @@ My standard System: Linux Mint 22 Cinnamon
|
|||||||
- os import in cls_mth_fc.py replaced by other methods
|
- os import in cls_mth_fc.py replaced by other methods
|
||||||
- If Wire-Py already runs, prevent further start
|
- If Wire-Py already runs, prevent further start
|
||||||
- for loops with lists replaced by List Comprehensions
|
- for loops with lists replaced by List Comprehensions
|
||||||
- Crypt and Decrypt Config Files in ~/.config/wire_py
|
|
||||||
|
|
||||||
|
### Added
|
||||||
|
09-04-0725
|
||||||
|
|
||||||
|
- Installer now with query and remove
|
||||||
|
- Icons merged
|
||||||
|
|
||||||
|
|
||||||
### Added
|
### Added
|
||||||
|
@ -4,4 +4,4 @@ Name=Wire-Py
|
|||||||
Exec=/usr/local/bin/wirepy.py
|
Exec=/usr/local/bin/wirepy.py
|
||||||
Terminal=false
|
Terminal=false
|
||||||
Categories=Network;
|
Categories=Network;
|
||||||
Icon=/usr/share/icons/wp-icons/128/wg_vpn.png
|
Icon=/usr/share/icons/lx-icons/128/wg_vpn.png
|
@ -318,7 +318,7 @@ class Tunnel:
|
|||||||
|
|
||||||
"""img_w, img_i, w_title, w_txt hand over"""
|
"""img_w, img_i, w_title, w_txt hand over"""
|
||||||
iw = r'/usr/share/icons/lx-icons/64/info.png'
|
iw = r'/usr/share/icons/lx-icons/64/info.png'
|
||||||
ii = r'/usr/share/icons/wp-icons/48/wg_vpn.png'
|
ii = r'/usr/share/icons/lx-icons/48/wg_vpn.png'
|
||||||
wt = _('Export Successful')
|
wt = _('Export Successful')
|
||||||
msg_t = _('Your zip file is in home directory')
|
msg_t = _('Your zip file is in home directory')
|
||||||
msg_window(iw, ii, wt, msg_t)
|
msg_window(iw, ii, wt, msg_t)
|
||||||
@ -327,7 +327,7 @@ class Tunnel:
|
|||||||
|
|
||||||
"""img_w, img_i, w_title, w_txt hand over"""
|
"""img_w, img_i, w_title, w_txt hand over"""
|
||||||
iw = r'/usr/share/icons/lx-icons/64/error.png'
|
iw = r'/usr/share/icons/lx-icons/64/error.png'
|
||||||
ii = r'/usr/share/icons/wp-icons/48/wg_msg.png'
|
ii = r'/usr/share/icons/lx-icons/48/wg_msg.png'
|
||||||
wt = _('Export error')
|
wt = _('Export error')
|
||||||
msg_t = _('Export failed! Please try again')
|
msg_t = _('Export failed! Please try again')
|
||||||
msg_window(iw, ii, wt, msg_t)
|
msg_window(iw, ii, wt, msg_t)
|
||||||
@ -336,7 +336,7 @@ class Tunnel:
|
|||||||
|
|
||||||
"""img_w, img_i, w_title, w_txt hand over"""
|
"""img_w, img_i, w_title, w_txt hand over"""
|
||||||
iw = r'/usr/share/icons/lx-icons/64/info.png'
|
iw = r'/usr/share/icons/lx-icons/64/info.png'
|
||||||
ii = r'/usr/share/icons/wp-icons/48/wg_msg.png'
|
ii = r'/usr/share/icons/lx-icons/48/wg_msg.png'
|
||||||
wt = _('Select tunnel')
|
wt = _('Select tunnel')
|
||||||
msg_t = _('Please first import tunnel')
|
msg_t = _('Please first import tunnel')
|
||||||
msg_window(iw, ii, wt, msg_t)
|
msg_window(iw, ii, wt, msg_t)
|
||||||
|
65
install
@ -18,9 +18,9 @@ install_file_with(){
|
|||||||
else
|
else
|
||||||
sudo apt install python3-tk && \
|
sudo apt install python3-tk && \
|
||||||
sudo cp -fv wirepy.py start_wg.py cls_mth_fc.py ssl_encrypt.py ssl_decrypt.py /usr/local/bin/ && \
|
sudo cp -fv wirepy.py start_wg.py cls_mth_fc.py ssl_encrypt.py ssl_decrypt.py /usr/local/bin/ && \
|
||||||
sudo cp -uR wp-icons lx-icons /usr/share/icons/ && sudo cp -uR TK-Themes /usr/share/ && \
|
sudo cp -uR lx-icons /usr/share/icons/ && sudo cp -uR TK-Themes /usr/share/ && \
|
||||||
sudo cp -u languages/de/*.mo /usr/share/locale/de/LC_MESSAGES/ && \
|
sudo cp -u languages/de/*.mo /usr/share/locale/de/LC_MESSAGES/ && \
|
||||||
sudo cp -f Wire-Py.desktop /usr/share/applications/
|
sudo cp -fv Wire-Py.desktop /usr/share/applications/
|
||||||
|
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
@ -39,13 +39,14 @@ install_arch_d(){
|
|||||||
else
|
else
|
||||||
sudo pacman -S --noconfirm tk python3 python-requests && \
|
sudo pacman -S --noconfirm tk python3 python-requests && \
|
||||||
sudo cp -fv wirepy.py start_wg.py cls_mth_fc.py ssl_encrypt.py ssl_decrypt.py /usr/local/bin/ && \
|
sudo cp -fv wirepy.py start_wg.py cls_mth_fc.py ssl_encrypt.py ssl_decrypt.py /usr/local/bin/ && \
|
||||||
sudo cp -uR wp-icons lx-icons /usr/share/icons/ && sudo cp -uR TK-Themes /usr/share/ && \
|
sudo cp -uR lx-icons /usr/share/icons/ && sudo cp -uR TK-Themes /usr/share/ && \
|
||||||
sudo cp -u languages/de/*.mo /usr/share/locale/de/LC_MESSAGES/ && \
|
sudo cp -u languages/de/*.mo /usr/share/locale/de/LC_MESSAGES/ && \
|
||||||
sudo cp -f Wire-Py.desktop /usr/share/applications/
|
sudo cp -fv Wire-Py.desktop /usr/share/applications/
|
||||||
|
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
install(){
|
||||||
if grep -i 'debian' /etc/os-release > /dev/null 2>&1
|
if grep -i 'debian' /etc/os-release > /dev/null 2>&1
|
||||||
then
|
then
|
||||||
groups > /tmp/isgroup
|
groups > /tmp/isgroup
|
||||||
@ -57,7 +58,7 @@ if grep -i 'debian' /etc/os-release > /dev/null 2>&1
|
|||||||
echo -e "with "$RED"su -"$BLUE" "they can enter the root shell in which they then""
|
echo -e "with "$RED"su -"$BLUE" "they can enter the root shell in which they then""
|
||||||
echo -e "enter "$GREEN""usermod -aG sudo $USER.""$BLUE""
|
echo -e "enter "$GREEN""usermod -aG sudo $USER.""$BLUE""
|
||||||
echo -e ""after logging in from the system, they can then run Wire-Py install again." $NORMAL"
|
echo -e ""after logging in from the system, they can then run Wire-Py install again." $NORMAL"
|
||||||
read -n 1 -s -r -p $"To close the Window press a button"
|
read -n 1 -s -r -p $"Press Enter to exit"
|
||||||
clear
|
clear
|
||||||
exit 0
|
exit 0
|
||||||
|
|
||||||
@ -84,7 +85,7 @@ elif grep -i 'arch' /etc/os-release > /dev/null 2>&1
|
|||||||
echo "remove '#' on # %wheel ALL=(ALL) ALL and save the file"
|
echo "remove '#' on # %wheel ALL=(ALL) ALL and save the file"
|
||||||
echo -e "then enter "$GREEN"gpasswd -a $USER wheel.""$NORMAL"
|
echo -e "then enter "$GREEN"gpasswd -a $USER wheel.""$NORMAL"
|
||||||
echo "after logging in from the system, they can then run Wire-Py install again."
|
echo "after logging in from the system, they can then run Wire-Py install again."
|
||||||
read -n 1 -s -r -p $"To close the Window press a button"
|
read -n 1 -s -r -p $"Press Enter to exit"
|
||||||
clear
|
clear
|
||||||
exit 0
|
exit 0
|
||||||
|
|
||||||
@ -109,9 +110,9 @@ elif grep -i 'fedora' /etc/os-release > /dev/null 2>&1
|
|||||||
else
|
else
|
||||||
sudo dnf install python3-tkinter -y
|
sudo dnf install python3-tkinter -y
|
||||||
sudo cp -fv wirepy.py start_wg.py cls_mth_fc.py ssl_encrypt.py ssl_decrypt.py /usr/local/bin/ && \
|
sudo cp -fv wirepy.py start_wg.py cls_mth_fc.py ssl_encrypt.py ssl_decrypt.py /usr/local/bin/ && \
|
||||||
sudo cp -uR wp-icons lx-icons /usr/share/icons/ && sudo cp -uR TK-Themes /usr/share/ && \
|
sudo cp -uR lx-icons /usr/share/icons/ && sudo cp -uR TK-Themes /usr/share/ && \
|
||||||
sudo cp -u languages/de/*.mo /usr/share/locale/de/LC_MESSAGES/ && \
|
sudo cp -u languages/de/*.mo /usr/share/locale/de/LC_MESSAGES/ && \
|
||||||
sudo cp -f Wire-Py.desktop /usr/share/applications/
|
sudo cp -fv Wire-Py.desktop /usr/share/applications/
|
||||||
|
|
||||||
fi
|
fi
|
||||||
elif grep -i 'suse' /etc/os-release > /dev/null 2>&1
|
elif grep -i 'suse' /etc/os-release > /dev/null 2>&1
|
||||||
@ -129,9 +130,9 @@ elif grep -i 'suse' /etc/os-release > /dev/null 2>&1
|
|||||||
else
|
else
|
||||||
sudo zypper install python311-tk && \
|
sudo zypper install python311-tk && \
|
||||||
sudo cp -fv wirepy.py start_wg.py cls_mth_fc.py ssl_encrypt.py ssl_decrypt.py /usr/local/bin/ && \
|
sudo cp -fv wirepy.py start_wg.py cls_mth_fc.py ssl_encrypt.py ssl_decrypt.py /usr/local/bin/ && \
|
||||||
sudo cp -uR wp-icons lx-icons /usr/share/icons/ && sudo cp -uR TK-Themes /usr/share/ && \
|
sudo cp -uR lx-icons /usr/share/icons/ && sudo cp -uR TK-Themes /usr/share/ && \
|
||||||
sudo cp -u languages/de/*.mo /usr/share/locale/de/LC_MESSAGES/ && \
|
sudo cp -u languages/de/*.mo /usr/share/locale/de/LC_MESSAGES/ && \
|
||||||
sudo cp -f Wire-Py.desktop /usr/share/applications/
|
sudo cp -fv Wire-Py.desktop /usr/share/applications/
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -139,13 +140,53 @@ else
|
|||||||
clear
|
clear
|
||||||
echo $"Your System could not be determined."
|
echo $"Your System could not be determined."
|
||||||
echo
|
echo
|
||||||
read -n 1 -s -r -p $"To close the window press a button"
|
read -n 1 -s -r -p $"Press Enter to exit"
|
||||||
clear
|
clear
|
||||||
exit 0
|
exit 0
|
||||||
|
|
||||||
fi
|
fi
|
||||||
#clear
|
#clear
|
||||||
read -n 1 -s -r -p $"To close the Window press a button"
|
read -n 1 -s -r -p $"Press Enter to exit"
|
||||||
clear
|
clear
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
remove(){
|
||||||
|
sudo rm -f /usr/local/bin/wirepy.py /usr/local/bin/start_wg.py /usr/local/bin/cls_mth_fc.py /usr/local/bin/ssl_encrypt.py /usr/local/bin/ssl_decrypt.py
|
||||||
|
if [ $? -ne 0 ]
|
||||||
|
then
|
||||||
|
exit 0
|
||||||
|
else
|
||||||
|
systemctl --user disable wg_start.service
|
||||||
|
rm -r ~/.config/wire_py && rm -r ~/.config/systemd
|
||||||
|
sudo rm /usr/share/applications/Wire-Py.desktop
|
||||||
|
sudo rm /usr/share/locale/de/LC_MESSAGES/languages/de/wirepy.mo
|
||||||
|
which syncpy >/dev/null
|
||||||
|
if [ $? -ne 0 ]
|
||||||
|
then
|
||||||
|
sudo rm -r /usr/share/icons/lx-icons && sudo rm -r /usr/share/TK-Themes
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo
|
||||||
|
read -p "Press Enter to exit..."
|
||||||
|
fi
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
which wirepy >/dev/null
|
||||||
|
if [ $? -eq 0 ]
|
||||||
|
then
|
||||||
|
echo "Do you want to update/reinstall or uninstall wirepy?"
|
||||||
|
echo
|
||||||
|
echo "Update/reinstall: press y, uninstall press r"
|
||||||
|
echo
|
||||||
|
read -n 1 -s -r -p "Cancel with any other key..." result
|
||||||
|
case $result in
|
||||||
|
[y]* ) clear; install; exit;;
|
||||||
|
[Y]* ) clear; install; exit;;
|
||||||
|
[j]* ) clear; install; exit;;
|
||||||
|
[J]* ) clear; install; exit;;
|
||||||
|
[r]* ) clear; remove; exit;;
|
||||||
|
[R]* ) clear; remove; exit;;
|
||||||
|
esac
|
||||||
|
clear
|
||||||
|
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 16 KiB |
Before Width: | Height: | Size: 13 KiB After Width: | Height: | Size: 13 KiB |
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 14 KiB |
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 14 KiB |
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 16 KiB |
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 15 KiB |
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 14 KiB |
Before Width: | Height: | Size: 28 KiB After Width: | Height: | Size: 28 KiB |
Before Width: | Height: | Size: 32 KiB After Width: | Height: | Size: 32 KiB |
Before Width: | Height: | Size: 18 KiB After Width: | Height: | Size: 18 KiB |
Before Width: | Height: | Size: 24 KiB After Width: | Height: | Size: 24 KiB |
Before Width: | Height: | Size: 26 KiB After Width: | Height: | Size: 26 KiB |
Before Width: | Height: | Size: 24 KiB After Width: | Height: | Size: 24 KiB |
Before Width: | Height: | Size: 18 KiB After Width: | Height: | Size: 18 KiB |
Before Width: | Height: | Size: 6.1 KiB After Width: | Height: | Size: 6.1 KiB |
Before Width: | Height: | Size: 6.0 KiB After Width: | Height: | Size: 6.0 KiB |
Before Width: | Height: | Size: 5.7 KiB After Width: | Height: | Size: 5.7 KiB |
Before Width: | Height: | Size: 6.1 KiB After Width: | Height: | Size: 6.1 KiB |
Before Width: | Height: | Size: 6.2 KiB After Width: | Height: | Size: 6.2 KiB |
Before Width: | Height: | Size: 6.1 KiB After Width: | Height: | Size: 6.1 KiB |
Before Width: | Height: | Size: 5.8 KiB After Width: | Height: | Size: 5.8 KiB |
Before Width: | Height: | Size: 7.3 KiB After Width: | Height: | Size: 7.3 KiB |
Before Width: | Height: | Size: 17 KiB After Width: | Height: | Size: 17 KiB |
Before Width: | Height: | Size: 7.0 KiB After Width: | Height: | Size: 7.0 KiB |
Before Width: | Height: | Size: 7.3 KiB After Width: | Height: | Size: 7.3 KiB |
Before Width: | Height: | Size: 7.3 KiB After Width: | Height: | Size: 7.3 KiB |
Before Width: | Height: | Size: 7.1 KiB After Width: | Height: | Size: 7.1 KiB |
Before Width: | Height: | Size: 17 KiB After Width: | Height: | Size: 17 KiB |
Before Width: | Height: | Size: 9.0 KiB After Width: | Height: | Size: 9.0 KiB |
Before Width: | Height: | Size: 8.2 KiB After Width: | Height: | Size: 8.2 KiB |
Before Width: | Height: | Size: 8.2 KiB After Width: | Height: | Size: 8.2 KiB |
Before Width: | Height: | Size: 8.3 KiB After Width: | Height: | Size: 8.3 KiB |
Before Width: | Height: | Size: 9.0 KiB After Width: | Height: | Size: 9.0 KiB |
Before Width: | Height: | Size: 8.7 KiB After Width: | Height: | Size: 8.7 KiB |
Before Width: | Height: | Size: 8.4 KiB After Width: | Height: | Size: 8.4 KiB |
46
wirepy.py
@ -25,7 +25,7 @@ wg_tips = Tipi.if_tip(wg_set)
|
|||||||
dirname = Path('/tmp/tlecdcwg/')
|
dirname = Path('/tmp/tlecdcwg/')
|
||||||
|
|
||||||
''' 1 = 1. Year, 09 = Month of the Year, 2924 = Day and Year of the Year '''
|
''' 1 = 1. Year, 09 = Month of the Year, 2924 = Day and Year of the Year '''
|
||||||
version = 'v. 2.04.0725'
|
version = 'v. 2.04.0925'
|
||||||
|
|
||||||
res = GiteaUpdate.api_down('https://git.ilunix.de/api/v1/repos/punix/Wire-Py/releases', version)
|
res = GiteaUpdate.api_down('https://git.ilunix.de/api/v1/repos/punix/Wire-Py/releases', version)
|
||||||
|
|
||||||
@ -90,7 +90,7 @@ class Wirepy(tk.Tk):
|
|||||||
self.tk.call('set_theme', 'dark')
|
self.tk.call('set_theme', 'dark')
|
||||||
|
|
||||||
''' Load the image file from disk. '''
|
''' Load the image file from disk. '''
|
||||||
self.wg_icon = tk.PhotoImage(file=r'/usr/share/icons/wp-icons/48/wg_vpn.png')
|
self.wg_icon = tk.PhotoImage(file=r'/usr/share/icons/lx-icons/48/wg_vpn.png')
|
||||||
|
|
||||||
''' Set it as the window icon '''
|
''' Set it as the window icon '''
|
||||||
self.iconphoto(True, self.wg_icon)
|
self.iconphoto(True, self.wg_icon)
|
||||||
@ -108,14 +108,14 @@ class FrameWidgets(ttk.Frame):
|
|||||||
self.dns = None
|
self.dns = None
|
||||||
self.address = None
|
self.address = None
|
||||||
self.auto_con = None
|
self.auto_con = None
|
||||||
self.wg_vpn_start = tk.PhotoImage(file=r'/usr/share/icons/wp-icons/48/wg_vpn-start.png')
|
self.wg_vpn_start = tk.PhotoImage(file=r'/usr/share/icons/lx-icons/48/wg_vpn-start.png')
|
||||||
self.wg_vpn_stop = tk.PhotoImage(file=r'/usr/share/icons/wp-icons/48/wg_vpn-stop.png')
|
self.wg_vpn_stop = tk.PhotoImage(file=r'/usr/share/icons/lx-icons/48/wg_vpn-stop.png')
|
||||||
self.imp_pic = tk.PhotoImage(file=r'/usr/share/icons/wp-icons/48/wg_import.png')
|
self.imp_pic = tk.PhotoImage(file=r'/usr/share/icons/lx-icons/48/wg_import.png')
|
||||||
self.tr_pic = tk.PhotoImage(file=r'/usr/share/icons/wp-icons/48/wg_trash.png')
|
self.tr_pic = tk.PhotoImage(file=r'/usr/share/icons/lx-icons/48/wg_trash.png')
|
||||||
self.exp_pic = tk.PhotoImage(file=r'/usr/share/icons/wp-icons/48/wg_export.png')
|
self.exp_pic = tk.PhotoImage(file=r'/usr/share/icons/lx-icons/48/wg_export.png')
|
||||||
self.warning_pic = tk.PhotoImage(file=r'/usr/share/icons/lx-icons/64/error.png')
|
self.warning_pic = tk.PhotoImage(file=r'/usr/share/icons/lx-icons/64/error.png')
|
||||||
self.wg_vpn_start = tk.PhotoImage(file=r'/usr/share/icons/wp-icons/48/wg_vpn-start.png')
|
self.wg_vpn_start = tk.PhotoImage(file=r'/usr/share/icons/lx-icons/48/wg_vpn-start.png')
|
||||||
self.wg_vpn_stop = tk.PhotoImage(file=r'/usr/share/icons/wp-icons/48/wg_vpn-stop.png')
|
self.wg_vpn_stop = tk.PhotoImage(file=r'/usr/share/icons/lx-icons/48/wg_vpn-stop.png')
|
||||||
|
|
||||||
''' Set on or off in file '''
|
''' Set on or off in file '''
|
||||||
|
|
||||||
@ -180,8 +180,8 @@ class FrameWidgets(ttk.Frame):
|
|||||||
webbrowser.open('https://git.ilunix.de/punix/Wire-Py')
|
webbrowser.open('https://git.ilunix.de/punix/Wire-Py')
|
||||||
|
|
||||||
''' img_w, img_i, w_title, w_txt , txt2, com hand over '''
|
''' img_w, img_i, w_title, w_txt , txt2, com hand over '''
|
||||||
iw = r'/usr/share/icons/wp-icons/48/wg_vpn.png'
|
iw = r'/usr/share/icons/lx-icons/48/wg_vpn.png'
|
||||||
ii = r'/usr/share/icons/wp-icons/48/wg_msg.png'
|
ii = r'/usr/share/icons/lx-icons/48/wg_msg.png'
|
||||||
wt = _('Info')
|
wt = _('Info')
|
||||||
msg_t = (_('Wire-Py a simple Wireguard Gui for Linux systems.\n\n'
|
msg_t = (_('Wire-Py a simple Wireguard Gui for Linux systems.\n\n'
|
||||||
'Wire-Py is open source software written in Python.\n\n'
|
'Wire-Py is open source software written in Python.\n\n'
|
||||||
@ -310,9 +310,9 @@ class FrameWidgets(ttk.Frame):
|
|||||||
command=lambda: GiteaUpdate.download(f'https://git.ilunix.de/punix'
|
command=lambda: GiteaUpdate.download(f'https://git.ilunix.de/punix'
|
||||||
f'/Wire-Py/archive/'
|
f'/Wire-Py/archive/'
|
||||||
f'{res}.zip', r'/usr/'
|
f'{res}.zip', r'/usr/'
|
||||||
r'share/icons/wp-icons'
|
r'share/icons/lx-icons'
|
||||||
r'/48/wg_vpn.png',
|
r'/48/wg_vpn.png',
|
||||||
r'/usr/share/icons/wp-icons'
|
r'/usr/share/icons/lx-icons'
|
||||||
r'/48/wg_msg.png', res))
|
r'/48/wg_msg.png', res))
|
||||||
|
|
||||||
''' Show active Tunnel '''
|
''' Show active Tunnel '''
|
||||||
@ -527,7 +527,7 @@ class FrameWidgets(ttk.Frame):
|
|||||||
|
|
||||||
"""img_w, img_i, w_title, w_txt hand over"""
|
"""img_w, img_i, w_title, w_txt hand over"""
|
||||||
iw = r'/usr/share/icons/lx-icons/64/info.png'
|
iw = r'/usr/share/icons/lx-icons/64/info.png'
|
||||||
ii = r'/usr/share/icons/wp-icons/48/wg_msg.png'
|
ii = r'/usr/share/icons/lx-icons/48/wg_msg.png'
|
||||||
wt = _('Select tunnel')
|
wt = _('Select tunnel')
|
||||||
msg_t = _('Please select a tunnel from the list')
|
msg_t = _('Please select a tunnel from the list')
|
||||||
msg_window(iw, ii, wt, msg_t)
|
msg_window(iw, ii, wt, msg_t)
|
||||||
@ -536,7 +536,7 @@ class FrameWidgets(ttk.Frame):
|
|||||||
|
|
||||||
"""img_w, img_i, w_title, w_txt hand over"""
|
"""img_w, img_i, w_title, w_txt hand over"""
|
||||||
iw = r'/usr/share/icons/lx-icons/64/info.png'
|
iw = r'/usr/share/icons/lx-icons/64/info.png'
|
||||||
ii = r'/usr/share/icons/wp-icons/48/wg_msg.png'
|
ii = r'/usr/share/icons/lx-icons/48/wg_msg.png'
|
||||||
wt = _('Select tunnel')
|
wt = _('Select tunnel')
|
||||||
msg_t = _('Please first import tunnel')
|
msg_t = _('Please first import tunnel')
|
||||||
msg_window(iw, ii, wt, msg_t)
|
msg_window(iw, ii, wt, msg_t)
|
||||||
@ -642,7 +642,7 @@ class FrameWidgets(ttk.Frame):
|
|||||||
|
|
||||||
"""img_w, img_i, w_title, w_txt hand over"""
|
"""img_w, img_i, w_title, w_txt hand over"""
|
||||||
iw = r'/usr/share/icons/lx-icons/64/info.png'
|
iw = r'/usr/share/icons/lx-icons/64/info.png'
|
||||||
ii = r'/usr/share/icons/wp-icons/48/wg_msg.png'
|
ii = r'/usr/share/icons/lx-icons/48/wg_msg.png'
|
||||||
wt = _('Renaming not possible')
|
wt = _('Renaming not possible')
|
||||||
msg_t = _('The new name may contain only 12 characters')
|
msg_t = _('The new name may contain only 12 characters')
|
||||||
msg_window(iw, ii, wt, msg_t)
|
msg_window(iw, ii, wt, msg_t)
|
||||||
@ -651,7 +651,7 @@ class FrameWidgets(ttk.Frame):
|
|||||||
|
|
||||||
"""img_w, img_i, w_title, w_txt hand over"""
|
"""img_w, img_i, w_title, w_txt hand over"""
|
||||||
iw = r'/usr/share/icons/lx-icons/64/info.png'
|
iw = r'/usr/share/icons/lx-icons/64/info.png'
|
||||||
ii = r'/usr/share/icons/wp-icons/48/wg_msg.png'
|
ii = r'/usr/share/icons/lx-icons/48/wg_msg.png'
|
||||||
wt = _('Renaming not possible')
|
wt = _('Renaming not possible')
|
||||||
msg_t = _('At least one character must be entered')
|
msg_t = _('At least one character must be entered')
|
||||||
msg_window(iw, ii, wt, msg_t)
|
msg_window(iw, ii, wt, msg_t)
|
||||||
@ -660,7 +660,7 @@ class FrameWidgets(ttk.Frame):
|
|||||||
|
|
||||||
"""img_w, img_i, w_title, w_txt hand over"""
|
"""img_w, img_i, w_title, w_txt hand over"""
|
||||||
iw = r'/usr/share/icons/lx-icons/64/info.png'
|
iw = r'/usr/share/icons/lx-icons/64/info.png'
|
||||||
ii = r'/usr/share/icons/wp-icons/48/wg_msg.png'
|
ii = r'/usr/share/icons/lx-icons/48/wg_msg.png'
|
||||||
wt = _('Renaming not possible')
|
wt = _('Renaming not possible')
|
||||||
msg_t = _('No valid sign. These must not be used.\nBlank, Slash, Backslash and { }\n')
|
msg_t = _('No valid sign. These must not be used.\nBlank, Slash, Backslash and { }\n')
|
||||||
msg_window(iw, ii, wt, msg_t)
|
msg_window(iw, ii, wt, msg_t)
|
||||||
@ -701,7 +701,7 @@ class FrameWidgets(ttk.Frame):
|
|||||||
|
|
||||||
"""img_w, img_i, w_title, w_txt hand over"""
|
"""img_w, img_i, w_title, w_txt hand over"""
|
||||||
iw = r'/usr/share/icons/lx-icons/64/info.png'
|
iw = r'/usr/share/icons/lx-icons/64/info.png'
|
||||||
ii = r'/usr/share/icons/wp-icons/48/wg_msg.png'
|
ii = r'/usr/share/icons/lx-icons/48/wg_msg.png'
|
||||||
wt = _('Renaming not possible')
|
wt = _('Renaming not possible')
|
||||||
msg_t = _('Please select a tunnel from the list')
|
msg_t = _('Please select a tunnel from the list')
|
||||||
msg_window(iw, ii, wt, msg_t)
|
msg_window(iw, ii, wt, msg_t)
|
||||||
@ -801,7 +801,7 @@ class FrameWidgets(ttk.Frame):
|
|||||||
if pre_key in p_key or pre_key + '\n' in p_key:
|
if pre_key in p_key or pre_key + '\n' in p_key:
|
||||||
"""img_w, img_i, w_title, w_txt hand over"""
|
"""img_w, img_i, w_title, w_txt hand over"""
|
||||||
iw = r'/usr/share/icons/lx-icons/64/error.png'
|
iw = r'/usr/share/icons/lx-icons/64/error.png'
|
||||||
ii = r'/usr/share/icons/wp-icons/48/wg_msg.png'
|
ii = r'/usr/share/icons/lx-icons/48/wg_msg.png'
|
||||||
wt = _('Import Error')
|
wt = _('Import Error')
|
||||||
msg_t = _('Tunnel already available!\nPlease use another file for import')
|
msg_t = _('Tunnel already available!\nPlease use another file for import')
|
||||||
msg_window(iw, ii, wt, msg_t)
|
msg_window(iw, ii, wt, msg_t)
|
||||||
@ -925,7 +925,7 @@ class FrameWidgets(ttk.Frame):
|
|||||||
if 'PrivateKey = ' and 'Endpoint = ' not in read:
|
if 'PrivateKey = ' and 'Endpoint = ' not in read:
|
||||||
"""img_w, img_i, w_title, w_txt hand over"""
|
"""img_w, img_i, w_title, w_txt hand over"""
|
||||||
iw = r'/usr/share/icons/lx-icons/64/error.png'
|
iw = r'/usr/share/icons/lx-icons/64/error.png'
|
||||||
ii = r'/usr/share/icons/wp-icons/48/wg_msg.png'
|
ii = r'/usr/share/icons/lx-icons/48/wg_msg.png'
|
||||||
wt = _('Import Error')
|
wt = _('Import Error')
|
||||||
msg_t = _('Oh... no valid Wireguard File!\nPlease select a valid Wireguard File')
|
msg_t = _('Oh... no valid Wireguard File!\nPlease select a valid Wireguard File')
|
||||||
msg_window(iw, ii, wt, msg_t)
|
msg_window(iw, ii, wt, msg_t)
|
||||||
@ -1147,7 +1147,7 @@ class FrameWidgets(ttk.Frame):
|
|||||||
|
|
||||||
"""img_w, img_i, w_title, w_txt hand over"""
|
"""img_w, img_i, w_title, w_txt hand over"""
|
||||||
iw = r'/usr/share/icons/lx-icons/64/info.png'
|
iw = r'/usr/share/icons/lx-icons/64/info.png'
|
||||||
ii = r'/usr/share/icons/wp-icons/48/wg_msg.png'
|
ii = r'/usr/share/icons/lx-icons/48/wg_msg.png'
|
||||||
wt = _('Select tunnel')
|
wt = _('Select tunnel')
|
||||||
msg_t = _('Please select a tunnel from the list')
|
msg_t = _('Please select a tunnel from the list')
|
||||||
msg_window(iw, ii, wt, msg_t)
|
msg_window(iw, ii, wt, msg_t)
|
||||||
@ -1156,7 +1156,7 @@ class FrameWidgets(ttk.Frame):
|
|||||||
|
|
||||||
"""img_w, img_i, w_title, w_txt hand over"""
|
"""img_w, img_i, w_title, w_txt hand over"""
|
||||||
iw = r'/usr/share/icons/lx-icons/64/info.png'
|
iw = r'/usr/share/icons/lx-icons/64/info.png'
|
||||||
ii = r'/usr/share/icons/wp-icons/48/wg_msg.png'
|
ii = r'/usr/share/icons/lx-icons/48/wg_msg.png'
|
||||||
wt = _('Select tunnel')
|
wt = _('Select tunnel')
|
||||||
msg_t = _('Please first import tunnel')
|
msg_t = _('Please first import tunnel')
|
||||||
msg_window(iw, ii, wt, msg_t)
|
msg_window(iw, ii, wt, msg_t)
|
||||||
|
Before Width: | Height: | Size: 5.7 KiB |
Before Width: | Height: | Size: 5.7 KiB |
Before Width: | Height: | Size: 12 KiB |
Before Width: | Height: | Size: 10 KiB |
Before Width: | Height: | Size: 5.1 KiB |
Before Width: | Height: | Size: 1.6 KiB |
Before Width: | Height: | Size: 5.7 KiB |
Before Width: | Height: | Size: 2.2 KiB |
Before Width: | Height: | Size: 2.7 KiB |
Before Width: | Height: | Size: 2.7 KiB |