summaryrefslogtreecommitdiff
path: root/jfr_playoff/gui
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2019-11-16 18:17:35 +0100
committeremkael <emkael@tlen.pl>2019-11-16 18:17:35 +0100
commit738ea152da21bc15b711949a116e16a2183894b6 (patch)
tree91224366441e5d78e59c1d344e4e962e59f4da18 /jfr_playoff/gui
parente7e65d6ff541fa2fbf42ab58bc679b4b81124fd0 (diff)
Focus on newly added phase tab
Diffstat (limited to 'jfr_playoff/gui')
-rw-r--r--jfr_playoff/gui/tabs.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/jfr_playoff/gui/tabs.py b/jfr_playoff/gui/tabs.py
index b444ecd..2a8c889 100644
--- a/jfr_playoff/gui/tabs.py
+++ b/jfr_playoff/gui/tabs.py
@@ -253,8 +253,11 @@ class MatchesTab(PlayoffTab):
self.phaseFrame.add(phase)
self.phases[newPhase] = phase
self._renameTabs()
+ self.phaseFrame.select(phase)
self.winfo_toplevel().event_generate(
'<<MatchListChanged>>', when='tail')
+ self.winfo_toplevel().event_generate(
+ '<<ValueChanged>>', when='tail')
return newPhase
def removePhase(self, phase=None):