summaryrefslogtreecommitdiff
path: root/jfr_playoff/gui/tabs.py
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2019-05-29 23:50:29 +0200
committeremkael <emkael@tlen.pl>2019-05-29 23:50:29 +0200
commit550e9c61dd0520507305ac35270561eee4db029b (patch)
treebf6f4f965c49736d20c720e3e48a6ea4a23c18fa /jfr_playoff/gui/tabs.py
parent49837a5ba854c58dcbce2f2150528e2eca288d56 (diff)
Fully refreshing team list
Diffstat (limited to 'jfr_playoff/gui/tabs.py')
-rw-r--r--jfr_playoff/gui/tabs.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/jfr_playoff/gui/tabs.py b/jfr_playoff/gui/tabs.py
index 0a8e100..64cc014 100644
--- a/jfr_playoff/gui/tabs.py
+++ b/jfr_playoff/gui/tabs.py
@@ -116,6 +116,13 @@ class TeamsTab(PlayoffTab):
container.rowconfigure(0, weight=2)
container.rowconfigure(2, weight=1)
+ self.winfo_toplevel().bind(
+ '<<TeamSettingsChanged>>', self.onTeamSettingsChange, add='+')
+
+ def onTeamSettingsChange(self, event):
+ self.winfo_toplevel().event_generate(
+ '<<TeamListChanged>>', when='tail')
+
def getTeams(self):
config = self.collectConfig()
dbConfig = self.winfo_toplevel().getDbConfig()