From adada21ae38d7fbc8f9a6eba1bb1f591a3452480 Mon Sep 17 00:00:00 2001 From: emkael Date: Sun, 7 Jul 2019 18:48:22 +0200 Subject: Adjusting alignment and widget sticky/grow for entire GUI --- jfr_playoff/gui/frames/visual.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'jfr_playoff/gui/frames/visual.py') diff --git a/jfr_playoff/gui/frames/visual.py b/jfr_playoff/gui/frames/visual.py index 03f9a14..0762e37 100644 --- a/jfr_playoff/gui/frames/visual.py +++ b/jfr_playoff/gui/frames/visual.py @@ -201,6 +201,7 @@ class BoxPositionFrame(RepeatableFrame): self.vertical = tk.IntVar() self.horizontal = tk.IntVar() self.matchBox = MatchList(self, self.match) + self.matchBox.configure(width=20) self.matchBox.grid(row=0, column=0) (ttk.Label(self, text=' w pionie:')).grid(row=0, column=1) (tk.Spinbox( @@ -347,8 +348,12 @@ class PositionStyleFrame(RepeatableFrame): self.name = tk.StringVar() self.description = tk.StringVar() + self.columnconfigure(1, weight=1) + self.columnconfigure(5, weight=1) + (ttk.Label(self, text='Styl:')).grid(row=0, column=0) - (ttk.Entry(self, textvariable=self.name)).grid(row=0, column=1) + (ttk.Entry(self, textvariable=self.name)).grid( + row=0, column=1, sticky=tk.W+tk.E) (ttk.Label(self, text='Pozycje koĊ„cowe:')).grid(row=0, column=2) self.positionBtn = TeamSelectionButton( @@ -358,7 +363,8 @@ class PositionStyleFrame(RepeatableFrame): self.positionBtn.grid(row=0, column=3) (ttk.Label(self, text='Opis w legendzie:')).grid(row=0, column=4) - (ttk.Entry(self, textvariable=self.description)).grid(row=0, column=5) + (ttk.Entry(self, textvariable=self.description)).grid( + row=0, column=5, sticky=tk.W+tk.E) self.setValue({}) -- cgit v1.2.3