summaryrefslogtreecommitdiff
path: root/jfr_playoff/gui/frames/visual.py
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2019-06-21 19:00:32 +0200
committeremkael <emkael@tlen.pl>2019-06-21 19:00:32 +0200
commit5fd98b9acb7c9636985d37bd81427fa6b7ff7292 (patch)
tree232dddae3228f13826ef5bfc71df727145da2efe /jfr_playoff/gui/frames/visual.py
parentc4e7936ec4b7f00d8da8021c31c513d6c042a1c8 (diff)
Labeled frames to group some widgets
Diffstat (limited to 'jfr_playoff/gui/frames/visual.py')
-rw-r--r--jfr_playoff/gui/frames/visual.py24
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 = []