summaryrefslogtreecommitdiff
path: root/jfr_playoff/gui/frames/team.py
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2019-06-27 14:26:47 +0200
committeremkael <emkael@tlen.pl>2019-06-27 14:26:47 +0200
commit07ff0371f6cd1434fc3fdf11181954967a9d888b (patch)
tree2c577360c945515bec89dda7518d87f413b9c318 /jfr_playoff/gui/frames/team.py
parent106133121d017c1788cde11c2d419b74e5465979 (diff)
Setting values for MatchList/TeamList unified
Diffstat (limited to 'jfr_playoff/gui/frames/team.py')
-rw-r--r--jfr_playoff/gui/frames/team.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/jfr_playoff/gui/frames/team.py b/jfr_playoff/gui/frames/team.py
index 28ffeba..d389206 100644
--- a/jfr_playoff/gui/frames/team.py
+++ b/jfr_playoff/gui/frames/team.py
@@ -283,8 +283,12 @@ class TeamList(RefreshableOptionMenu):
'<<TeamListChanged>>', self.refreshOptions, add='+')
self.configure(width=10)
- def getOptions(self):
- return [team[0] for team in self.winfo_toplevel().getTeams()]
+ def getLabel(self, team):
+ return team[0]
+
+ def getValues(self):
+ return self.winfo_toplevel().getTeams()
+
class TeamAliasRow(RepeatableFrame):
def renderContent(self):