summaryrefslogtreecommitdiff
path: root/jfr_playoff/gui/frames/match.py
diff options
context:
space:
mode:
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):