rows adjusted
This commit is contained in:
parent
4bfc8c318e
commit
80c63eaf78
34
wg_main.py
34
wg_main.py
@ -19,8 +19,6 @@ class MainWindow(tk.Tk):
|
|||||||
super().__init__(*args, **kwargs)
|
super().__init__(*args, **kwargs)
|
||||||
|
|
||||||
self.my_tool_tip = None
|
self.my_tool_tip = None
|
||||||
self.switch_on = None
|
|
||||||
self.switch_off = None
|
|
||||||
self.x_width = 600
|
self.x_width = 600
|
||||||
self.y_height = 400
|
self.y_height = 400
|
||||||
self.monitor_center_x = self.winfo_screenwidth() / 2 - (self.x_width / 2)
|
self.monitor_center_x = self.winfo_screenwidth() / 2 - (self.x_width / 2)
|
||||||
@ -225,8 +223,7 @@ class MainWindow(tk.Tk):
|
|||||||
|
|
||||||
def download_enter(event):
|
def download_enter(event):
|
||||||
""" The mouse moves into the entry widget """
|
""" The mouse moves into the entry widget """
|
||||||
window.my_tool_tip = MyToolTip(event.x_root, event.y_root,
|
window.my_tool_tip = MyToolTip(event.x_root, event.y_root, 'Click to download new version')
|
||||||
'Click to download new version')
|
|
||||||
|
|
||||||
def download_leave(_):
|
def download_leave(_):
|
||||||
""" The mouse moves from the entry widget """
|
""" The mouse moves from the entry widget """
|
||||||
@ -248,18 +245,12 @@ class FrameWidgets(ttk.Frame):
|
|||||||
def __init__(self, container, **kwargs):
|
def __init__(self, container, **kwargs):
|
||||||
super().__init__(container, **kwargs)
|
super().__init__(container, **kwargs)
|
||||||
|
|
||||||
|
self.lb_tunnel = None
|
||||||
|
self.btn_stst = None
|
||||||
self.endpoint = None
|
self.endpoint = None
|
||||||
self.dns = None
|
self.dns = None
|
||||||
self.address = None
|
self.address = None
|
||||||
self.btn_stst = None
|
|
||||||
self.auto_con = None
|
self.auto_con = None
|
||||||
self.enp = None
|
|
||||||
self.DNS = None
|
|
||||||
self.add = None
|
|
||||||
self.data = None
|
|
||||||
self.peer = None
|
|
||||||
self.lb_tunnel = None
|
|
||||||
self.wg_read = 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/wp-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/wp-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/wp-icons/48/wg_import.png')
|
||||||
@ -388,15 +379,12 @@ class FrameWidgets(ttk.Frame):
|
|||||||
self.show_data()
|
self.show_data()
|
||||||
|
|
||||||
''' Button Import '''
|
''' Button Import '''
|
||||||
self.btn_i = ttk.Button(self.lb_frame_btn_lbox,
|
self.btn_i = ttk.Button(self.lb_frame_btn_lbox, image=self.imp_pic, command=self.import_sl, padding=0)
|
||||||
image=self.imp_pic, command=self.import_sl,
|
|
||||||
padding=0)
|
|
||||||
self.btn_i.grid(column=0, row=1, padx=15, pady=8)
|
self.btn_i.grid(column=0, row=1, padx=15, pady=8)
|
||||||
|
|
||||||
def imp_enter(event):
|
def imp_enter(event):
|
||||||
""" The mouse moves into the entry widget """
|
""" The mouse moves into the entry widget """
|
||||||
window.my_tool_tip = MyToolTip(event.x_root, event.y_root,
|
window.my_tool_tip = MyToolTip(event.x_root, event.y_root, 'Click to import a Wireguard Tunnel')
|
||||||
'Click to import a Wireguard Tunnel')
|
|
||||||
|
|
||||||
def imp_leave(_):
|
def imp_leave(_):
|
||||||
""" The mouse moves from the entry widget """
|
""" The mouse moves from the entry widget """
|
||||||
@ -503,8 +491,7 @@ class FrameWidgets(ttk.Frame):
|
|||||||
|
|
||||||
def empty_list_enter(event):
|
def empty_list_enter(event):
|
||||||
""" The mouse moves into the entry widget """
|
""" The mouse moves into the entry widget """
|
||||||
window.my_tool_tip = MyToolTip(event.x_root, event.y_root,
|
window.my_tool_tip = MyToolTip(event.x_root, event.y_root, 'No tunnels to delete in the list')
|
||||||
'No tunnels to delete in the list')
|
|
||||||
|
|
||||||
def empty_list_leave(_):
|
def empty_list_leave(_):
|
||||||
""" The mouse moves from the entry widget """
|
""" The mouse moves from the entry widget """
|
||||||
@ -529,14 +516,12 @@ class FrameWidgets(ttk.Frame):
|
|||||||
self.btn_tr.bind('<Leave>', del_leave)
|
self.btn_tr.bind('<Leave>', del_leave)
|
||||||
|
|
||||||
''' Button Export '''
|
''' Button Export '''
|
||||||
self.btn_exp = ttk.Button(self.lb_frame_btn_lbox, image=self.exp_pic, command=Tunnel.export,
|
self.btn_exp = ttk.Button(self.lb_frame_btn_lbox, image=self.exp_pic, command=Tunnel.export, padding=0)
|
||||||
padding=0)
|
|
||||||
self.btn_exp.grid(column=0, row=3, padx=15, pady=8)
|
self.btn_exp.grid(column=0, row=3, padx=15, pady=8)
|
||||||
|
|
||||||
def empty_list_enter(event):
|
def empty_list_enter(event):
|
||||||
""" The mouse moves into the entry widget """
|
""" The mouse moves into the entry widget """
|
||||||
window.my_tool_tip = MyToolTip(event.x_root, event.y_root,
|
window.my_tool_tip = MyToolTip(event.x_root, event.y_root, 'No Tunnels in List for Export')
|
||||||
'No Tunnels in List for Export')
|
|
||||||
|
|
||||||
def empty_list_leave(_):
|
def empty_list_leave(_):
|
||||||
""" The mouse moves from the entry widget """
|
""" The mouse moves from the entry widget """
|
||||||
@ -1011,8 +996,7 @@ class FrameWidgets(ttk.Frame):
|
|||||||
|
|
||||||
def empty_list_start_enter(event):
|
def empty_list_start_enter(event):
|
||||||
""" The mouse moves into the entry widget """
|
""" The mouse moves into the entry widget """
|
||||||
window.my_tool_tip = MyToolTip(event.x_root, event.y_root,
|
window.my_tool_tip = MyToolTip(event.x_root, event.y_root, 'No tunnels to start in the list')
|
||||||
'No tunnels to start in the list')
|
|
||||||
|
|
||||||
def empty_list_start_leave(_):
|
def empty_list_start_leave(_):
|
||||||
""" The mouse moves from the entry widget """
|
""" The mouse moves from the entry widget """
|
||||||
|
Loading…
Reference in New Issue
Block a user