diff options
author | emkael <emkael@tlen.pl> | 2019-05-29 22:36:31 +0200 |
---|---|---|
committer | emkael <emkael@tlen.pl> | 2019-05-29 22:36:31 +0200 |
commit | bea8898072fa7b5dc4253f022be0e1dc3018964a (patch) | |
tree | 3e28f2f3dfa6b4bee5af59e589d6cd01b6536732 | |
parent | aa504c968aed1f7a274c0df07060cf4519afb158 (diff) |
Aggregating values from WidgetRepeater widgets
-rw-r--r-- | jfr_playoff/gui/frames/__init__.py | 4 |
1 files changed, 4 insertions, 0 deletions
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) |