diff options
author | emkael <emkael@tlen.pl> | 2019-06-27 14:26:47 +0200 |
---|---|---|
committer | emkael <emkael@tlen.pl> | 2019-06-27 14:26:47 +0200 |
commit | 07ff0371f6cd1434fc3fdf11181954967a9d888b (patch) | |
tree | 2c577360c945515bec89dda7518d87f413b9c318 /jfr_playoff/gui/frames/team.py | |
parent | 106133121d017c1788cde11c2d419b74e5465979 (diff) |
Setting values for MatchList/TeamList unified
Diffstat (limited to 'jfr_playoff/gui/frames/team.py')
-rw-r--r-- | jfr_playoff/gui/frames/team.py | 8 |
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): |