diff options
author | emkael <emkael@tlen.pl> | 2019-06-21 19:00:32 +0200 |
---|---|---|
committer | emkael <emkael@tlen.pl> | 2019-06-21 19:00:32 +0200 |
commit | 5fd98b9acb7c9636985d37bd81427fa6b7ff7292 (patch) | |
tree | 232dddae3228f13826ef5bfc71df727145da2efe /jfr_playoff/gui/frames/visual.py | |
parent | c4e7936ec4b7f00d8da8021c31c513d6c042a1c8 (diff) |
Labeled frames to group some widgets
Diffstat (limited to 'jfr_playoff/gui/frames/visual.py')
-rw-r--r-- | jfr_playoff/gui/frames/visual.py | 24 |
1 files changed, 8 insertions, 16 deletions
diff --git a/jfr_playoff/gui/frames/visual.py b/jfr_playoff/gui/frames/visual.py index eea87f0..b36a5ec 100644 --- a/jfr_playoff/gui/frames/visual.py +++ b/jfr_playoff/gui/frames/visual.py @@ -11,22 +11,14 @@ from ..frames.team import TeamSelectionButton class VisualSettingsFrame(GuiFrame): def renderContent(self): - (ttk.Label(self, text='Znaczniki pozycji:')).grid( - row=0, column=0, sticky=tk.W, pady=5) - (ttk.Label(self, text='Wymiary tabelki meczu:')).grid( - row=0, column=1, sticky=tk.W, pady=5) - indicatorsFrame = tk.Frame(self) - indicatorsFrame.grid(row=1, column=0, sticky=tk.W+tk.N, padx=10) - dimensionsFrame = tk.Frame(self) - dimensionsFrame.grid(row=1, column=1, sticky=tk.W+tk.N, padx=10) - (ttk.Label(self, text='Nazwy teamów:')).grid( - row=2, column=0, sticky=tk.W, pady=5) - (ttk.Label(self, text='Separatory nazw teamów:')).grid( - row=2, column=1, sticky=tk.W, pady=5) - teamNamesFrame = tk.Frame(self) - teamNamesFrame.grid(row=3, column=0, sticky=tk.W+tk.N, padx=10) - separatorsFrame = tk.Frame(self) - separatorsFrame.grid(row=3, column=1, sticky=tk.W+tk.N, padx=10) + indicatorsFrame = ttk.LabelFrame(self, text='Znaczniki pozycji:') + indicatorsFrame.grid(row=0, column=0, sticky=tk.W+tk.E+tk.N+tk.S) + dimensionsFrame = ttk.LabelFrame(self, text='Wymiary tabelki meczu:') + dimensionsFrame.grid(row=0, column=1, sticky=tk.W+tk.E+tk.N+tk.S) + teamNamesFrame = ttk.LabelFrame(self, text='Nazwy teamów:') + teamNamesFrame.grid(row=1, column=0, sticky=tk.W+tk.E+tk.N+tk.S) + separatorsFrame = ttk.LabelFrame(self, text='Separatory nazw teamów:') + separatorsFrame.grid(row=1, column=1, sticky=tk.W+tk.E+tk.N+tk.S) self._fieldsToEnable = [] |