summaryrefslogtreecommitdiff
path: root/jfr_playoff/gui/frames/match.py
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2019-11-16 14:50:36 +0100
committeremkael <emkael@tlen.pl>2019-11-16 17:48:56 +0100
commit07b299a8cb5b84456efde0941af308a3b9c7bf3f (patch)
tree26df508ac993980a8457f3c3ba46c9d2fae99879 /jfr_playoff/gui/frames/match.py
parent2f2d4788d7f501e76f3b86bec0ad732dc2387433 (diff)
Minimum phase tab name length forced
Diffstat (limited to 'jfr_playoff/gui/frames/match.py')
-rw-r--r--jfr_playoff/gui/frames/match.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/jfr_playoff/gui/frames/match.py b/jfr_playoff/gui/frames/match.py
index 7d0b923..15aa56c 100644
--- a/jfr_playoff/gui/frames/match.py
+++ b/jfr_playoff/gui/frames/match.py
@@ -641,9 +641,10 @@ class MatchSettingsFrame(RepeatableFrame):
def label(self):
try:
phase = self._getPhase()
- return 'Mecz #%d (%s)' % (
+ return 'Mecz #%d [faza: %s]' % (
self.getMatchID(),
- phase.master.tab(phase)['text'] if phase is not None else '')
+ phase.master.tab(phase)['text'].strip()
+ if phase is not None else '')
except tk.TclError:
# we're probably just being created, ignore
return ''