diff options
author | emkael <emkael@tlen.pl> | 2019-07-07 18:48:22 +0200 |
---|---|---|
committer | emkael <emkael@tlen.pl> | 2019-07-07 18:48:22 +0200 |
commit | adada21ae38d7fbc8f9a6eba1bb1f591a3452480 (patch) | |
tree | a3667254ace853f8d9cd63c4adec2c632a2b522c /jfr_playoff/gui/frames/visual.py | |
parent | 185ffdcbfdd5246e127762ad0b290e99116a0215 (diff) |
Adjusting alignment and widget sticky/grow for entire GUI
Diffstat (limited to 'jfr_playoff/gui/frames/visual.py')
-rw-r--r-- | jfr_playoff/gui/frames/visual.py | 10 |
1 files changed, 8 insertions, 2 deletions
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({}) |