summaryrefslogtreecommitdiff
path: root/jfr_playoff/gui/frames/visual.py
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2019-06-06 16:08:22 +0200
committeremkael <emkael@tlen.pl>2019-06-06 16:08:22 +0200
commitecd001bd1e803bfc5971fcd21be11c1ad851c8da (patch)
tree721144e0080dc5d20fec7a41468c20498a8f3571 /jfr_playoff/gui/frames/visual.py
parentd6ff199aca6947f4772e8946db5f8df8b041e354 (diff)
Box position GUI
Diffstat (limited to 'jfr_playoff/gui/frames/visual.py')
-rw-r--r--jfr_playoff/gui/frames/visual.py25
1 files changed, 24 insertions, 1 deletions
diff --git a/jfr_playoff/gui/frames/visual.py b/jfr_playoff/gui/frames/visual.py
index 5bcdc04..a86d7a3 100644
--- a/jfr_playoff/gui/frames/visual.py
+++ b/jfr_playoff/gui/frames/visual.py
@@ -146,7 +146,30 @@ class VisualSettingsFrame(GuiFrame):
field.configure(state=tk.NORMAL if var.get() else tk.DISABLED)
+class BoxPositionFrame(RepeatableFrame):
+ def renderContent(self):
+ self.match = tk.StringVar()
+ self.vertical = tk.IntVar()
+ self.horizontal = tk.IntVar()
+ self.horizontal.set(-1)
+ (ttk.OptionMenu(self, self.match)).grid(row=0, column=0)
+ (ttk.Label(self, text=' w pionie:')).grid(row=0, column=1)
+ (tk.Spinbox(
+ self, textvariable=self.vertical, from_=0, to=9999,
+ width=5, justify=tk.RIGHT)).grid(
+ row=0, column=2)
+ (ttk.Label(self, text=' w poziomie (-1 = automatyczna):')).grid(
+ row=0, column=3)
+ (tk.Spinbox(
+ self, textvariable=self.horizontal, from_=-1, to=9999,
+ width=5, justify=tk.RIGHT)).grid(
+ row=0, column=4)
+
class BoxPositionsFrame(ScrollableFrame):
- pass
+ def renderContent(self, container):
+ (ttk.Label(container, text='Pozycje tabelek meczów:')).pack(
+ side=tk.TOP, anchor=tk.W)
+ (WidgetRepeater(container, BoxPositionFrame)).pack(
+ side=tk.TOP, fill=tk.BOTH, expand=True)
__all__ = ['VisualSettingsFrame', 'BoxPositionsFrame']