columnconfigure on all widgets set

This commit is contained in:
2024-08-27 19:14:49 +02:00
parent 6173a653f9
commit e5d86f1f90
3 changed files with 40 additions and 17 deletions

View File

@ -42,6 +42,8 @@ class GreenLabel(tk.Tk):
self.lb_tunnel = tk.Label(self, textvariable=self.StrVar, fg='green')
self.lb_tunnel.config(font=("Ubuntu", 11, "bold"))
self.lb_tunnel.grid(column=2, padx=10, row=1)
self.columnconfigure(2, weight=1)
self.rowconfigure(1, weight=1)
class StartStopBTN(tk.Tk):
@ -55,12 +57,14 @@ class StartStopBTN(tk.Tk):
def button_stop(self):
self.btn_stst = tk.Button(self, image=self.wg_vpn_stop, bd=0, command=self.wg_switch)
self.btn_stst.grid(column=0, row=1, padx=15, pady=10, sticky="s")
self.rowconfigure(0, weight=1)
self.columnconfigure(0, weight=1)
self.rowconfigure(1, weight=1)
def button_start(self):
self.btn_stst = tk.Button(self, image=self.wg_vpn_start, bd=0, command=self.wg_switch)
self.btn_stst.grid(column=0, row=1, padx=15, pady=10, sticky="s")
self.rowconfigure(0, weight=1)
self.columnconfigure(0, weight=1)
self.rowconfigure(1, weight=1)
class ConToDict: