summaryrefslogtreecommitdiff
path: root/jfr_playoff
diff options
context:
space:
mode:
Diffstat (limited to 'jfr_playoff')
-rw-r--r--jfr_playoff/gui/frames/match.py13
1 files changed, 12 insertions, 1 deletions
diff --git a/jfr_playoff/gui/frames/match.py b/jfr_playoff/gui/frames/match.py
index 01cb742..b44bfe0 100644
--- a/jfr_playoff/gui/frames/match.py
+++ b/jfr_playoff/gui/frames/match.py
@@ -568,9 +568,20 @@ class MatchSettingsFrame(RepeatableFrame):
def getMatchID(self):
return self.matchID.get()
+ def _getPhase(self):
+ obj = self
+ while not isinstance(obj, MatchPhaseFrame):
+ obj = obj.master
+ if obj is None:
+ break
+ return obj
+
@property
def label(self):
- return 'Mecz nr %d' % (self.getMatchID())
+ phase = self._getPhase()
+ return 'Mecz #%d (%s)' % (
+ self.getMatchID(),
+ phase.master.tab(phase)['text'] if phase is not None else '')
def setValue(self, value):
self.matchID.set(value['id'] if 'id' in value else 0)