summaryrefslogtreecommitdiff
path: root/jfr_playoff/gui/tabs.py
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2019-06-27 23:45:45 +0200
committeremkael <emkael@tlen.pl>2019-06-27 23:45:45 +0200
commite53d7c6e35e8bb7aab42976f470957dde313ece5 (patch)
tree0778321536ccfe0f9b546341ff3b04d7e3ca58e7 /jfr_playoff/gui/tabs.py
parent512a48d2d4f556b30f502c4c057a975f43f58764 (diff)
Generating MatchListChanged events on repeater add/remove
Diffstat (limited to 'jfr_playoff/gui/tabs.py')
-rw-r--r--jfr_playoff/gui/tabs.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/jfr_playoff/gui/tabs.py b/jfr_playoff/gui/tabs.py
index e61779c..873edc0 100644
--- a/jfr_playoff/gui/tabs.py
+++ b/jfr_playoff/gui/tabs.py
@@ -220,6 +220,8 @@ class MatchesTab(PlayoffTab):
newPhase = max(self.phases.keys()) + 1 if len(self.phases) else 1
self.phaseFrame.add(phase, text='Faza #%d' % (newPhase))
self.phases[newPhase] = phase
+ self.winfo_toplevel().event_generate(
+ '<<MatchListChanged>>', when='tail')
return newPhase
def removePhase(self, phase=None):
@@ -234,6 +236,8 @@ class MatchesTab(PlayoffTab):
break
if key_to_delete:
self.phases.pop(key_to_delete)
+ self.winfo_toplevel().event_generate(
+ '<<MatchListChanged>>', when='tail')
def _renameTabs(self, *args):
for idx, tab in self.phases.iteritems():