diff options
author | emkael <emkael@tlen.pl> | 2019-06-21 21:22:05 +0200 |
---|---|---|
committer | emkael <emkael@tlen.pl> | 2019-06-21 21:22:05 +0200 |
commit | 5cdfee5a5e402a0213ae0bca3aa9290a0263402c (patch) | |
tree | 80f433d36e2975699d868870417da24648a563b6 /jfr_playoff/gui/frames/match.py | |
parent | 93c30ff638bb29eb609884ba8f4e85392dec3d6a (diff) |
Renaming phase tab labels dynamically
Diffstat (limited to 'jfr_playoff/gui/frames/match.py')
-rw-r--r-- | jfr_playoff/gui/frames/match.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/jfr_playoff/gui/frames/match.py b/jfr_playoff/gui/frames/match.py index b785f99..6772e6b 100644 --- a/jfr_playoff/gui/frames/match.py +++ b/jfr_playoff/gui/frames/match.py @@ -387,6 +387,9 @@ class MatchPhaseFrame(ScrollableFrame): match.link.set(self.link.get()) self.previousLink = self.link.get() + def _signalPhaseRename(self, *args): + self.winfo_toplevel().event_generate('<<PhaseRenamed>>', when='tail') + def renderContent(self, container): self.previousLink = '' headerFrame = tk.Frame(container) @@ -403,6 +406,7 @@ class MatchPhaseFrame(ScrollableFrame): self.matches.pack(side=tk.TOP, fill=tk.BOTH, expand=True) self.link.trace('w', self._updateLinks) + self.name.trace('w', self._signalPhaseRename) __all__ = ['SwissesFrame', 'MatchPhaseFrame', 'MatchSettingsFrame'] |