Set Style to Clam

Improved layout of widgets
This commit is contained in:
2024-08-21 22:39:18 +02:00
parent 7b4226c704
commit 2601b7b0ce
4 changed files with 51 additions and 34 deletions

View File

@ -38,7 +38,7 @@ class GreenLabel(tk.Tk):
def green_show_label(self):
self.lb_tunnel = tk.Label(self, textvariable=self.StrVar, fg='green')
self.lb_tunnel.config(font=("Ubuntu", 11, "bold"))
self.lb_tunnel.grid(column=3, row=1, sticky="w")
self.lb_tunnel.grid(column=2, padx=10, row=1)
class StartStopBTN(tk.Tk):
@ -152,9 +152,7 @@ class ImportTunnel:
self.l_box.update()
self.StrVar = tk.StringVar()
self.StrVar.set(self.a)
self.lb_tunnel = tk.Label(self, textvariable=self.StrVar, fg='green')
self.lb_tunnel.config(font=("Ubuntu", 11, "bold"))
self.lb_tunnel.grid(column=3, row=1, sticky="w")
GreenLabel.green_show_label(self)
StartStopBTN.button_stop(self)
wg_read = os.environ['HOME'] + '/tester/' + str(self.a) + '.conf'
file = open(wg_read, 'r')