summaryrefslogtreecommitdiff
path: root/jfr_playoff
diff options
context:
space:
mode:
Diffstat (limited to 'jfr_playoff')
-rw-r--r--jfr_playoff/gui/frames/__init__.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/jfr_playoff/gui/frames/__init__.py b/jfr_playoff/gui/frames/__init__.py
index 82f2966..5de9752 100644
--- a/jfr_playoff/gui/frames/__init__.py
+++ b/jfr_playoff/gui/frames/__init__.py
@@ -80,6 +80,12 @@ class WidgetRepeater(tk.Frame):
return [widget.getValue() for widget in self.widgets
if isinstance(widget, self.widgetClass)]
+ def setValue(self, value):
+ for i in range(0, len(value)):
+ if i >= len(self.widgets):
+ self._addWidget()
+ self.widgets[i].setValue(value[i])
+
class RepeatableFrame(tk.Frame):
def __init__(self, *args, **kwargs):
tk.Frame.__init__(self, *args, **kwargs)