diff options
Diffstat (limited to 'jfr_playoff/gui/frames/__init__.py')
-rw-r--r-- | jfr_playoff/gui/frames/__init__.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/jfr_playoff/gui/frames/__init__.py b/jfr_playoff/gui/frames/__init__.py index 623b5bd..dba30a5 100644 --- a/jfr_playoff/gui/frames/__init__.py +++ b/jfr_playoff/gui/frames/__init__.py @@ -117,6 +117,8 @@ class WidgetRepeater(tk.Frame): if i >= len(self.widgets): self._addWidget() self.widgets[i].setValue(value[i]) + for idx in range(len(value), len(self.widgets)): + self._removeWidget(idx) class GuiFrame(tk.Frame): def __init__(self, *args, **kwargs): |