summaryrefslogtreecommitdiff
path: root/jfr_playoff/gui/frames/match.py
diff options
context:
space:
mode:
Diffstat (limited to 'jfr_playoff/gui/frames/match.py')
-rw-r--r--jfr_playoff/gui/frames/match.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/jfr_playoff/gui/frames/match.py b/jfr_playoff/gui/frames/match.py
index e7f86fc..2cf88bf 100644
--- a/jfr_playoff/gui/frames/match.py
+++ b/jfr_playoff/gui/frames/match.py
@@ -807,12 +807,16 @@ class MatchPhaseFrame(ScrollableFrame):
side=tk.LEFT, fill=tk.X, expand=True)
self.matches = WidgetRepeater(
- container, [MatchSettingsFrame, MatchSeparator])
+ container, [MatchSettingsFrame, MatchSeparator],
+ onAdd=self._matchAdded)
self.matches.pack(side=tk.TOP, fill=tk.BOTH, expand=True)
self.link.trace('w', self._updateLinks)
self.name.trace('w', self._signalPhaseRename)
+ def _matchAdded(self, widget):
+ self.after(100, self.canvas.yview_moveto, 1.0)
+
def setValues(self, values):
matches = values['matches'] if 'matches' in values else []
dummies = values['dummies'] if 'dummies' in values else []