From bea8898072fa7b5dc4253f022be0e1dc3018964a Mon Sep 17 00:00:00 2001 From: emkael Date: Wed, 29 May 2019 22:36:31 +0200 Subject: Aggregating values from WidgetRepeater widgets --- jfr_playoff/gui/frames/__init__.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/jfr_playoff/gui/frames/__init__.py b/jfr_playoff/gui/frames/__init__.py index a4cc361..f75a024 100644 --- a/jfr_playoff/gui/frames/__init__.py +++ b/jfr_playoff/gui/frames/__init__.py @@ -65,6 +65,10 @@ class WidgetRepeater(tk.Frame): self._renderHeader() self._updateGrid() + def getValue(self): + return [widget.getValue() for widget in self.widgets + if isinstance(widget, self.widgetClass)] + class RepeatableFrame(tk.Frame): def __init__(self, *args, **kwargs): tk.Frame.__init__(self, *args, **kwargs) -- cgit v1.2.3