summaryrefslogtreecommitdiff
path: root/jfr_playoff/gui/frames/match.py
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2019-06-28 11:58:31 +0200
committeremkael <emkael@tlen.pl>2019-06-28 11:58:31 +0200
commit8fbb85176b183fe72be568beb04f11bc472e1a5e (patch)
tree699146e9c0a611fcb2383dca85b3e1a5dc5174ae /jfr_playoff/gui/frames/match.py
parenta46d3f05a9bc95932414ee8bc200e9d414d81487 (diff)
Separating OptionMenu labels from values
Diffstat (limited to 'jfr_playoff/gui/frames/match.py')
-rw-r--r--jfr_playoff/gui/frames/match.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/jfr_playoff/gui/frames/match.py b/jfr_playoff/gui/frames/match.py
index b44bfe0..c2f7026 100644
--- a/jfr_playoff/gui/frames/match.py
+++ b/jfr_playoff/gui/frames/match.py
@@ -231,6 +231,9 @@ class SelectedTeamList(RefreshableOptionMenu):
def getLabel(self, value):
return self.VALUE_LABELS[value[0]] % (value[1])
+ def getVarValue(self, value):
+ return unicode(value)
+
class BracketMatchSettingsFrame(GuiFrame):
SOURCE_TEAM=0
@@ -376,10 +379,10 @@ class BracketMatchSettingsFrame(GuiFrame):
def setSelectedTeam(self, team):
if team > -1:
- self.selectedIndex.set(self.bracketWidgets[7].getOptions()[team+1])
+ self.selectedIndex.set(self.bracketWidgets[7].getValues()[team+1])
self.selected.set(1)
else:
- self.selectedIndex.set(0)
+ self.selectedIndex.set(('none', ''))
self.selected.set(0)
def getConfig(self):