diff options
author | emkael <emkael@tlen.pl> | 2019-06-27 20:44:23 +0200 |
---|---|---|
committer | emkael <emkael@tlen.pl> | 2019-06-27 20:44:23 +0200 |
commit | 69c0e0733b6c254e798bfd75569d80d220eb4a15 (patch) | |
tree | cb789c8f30d3082c2760b8bba0f5e64b4a2f77a3 /jfr_playoff/gui/frames/visual.py | |
parent | 1b33aabd2d5949be3d94b23dfe54f4b28a8959a2 (diff) |
SelectionButton/Frame with custom value mappings
Diffstat (limited to 'jfr_playoff/gui/frames/visual.py')
-rw-r--r-- | jfr_playoff/gui/frames/visual.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/jfr_playoff/gui/frames/visual.py b/jfr_playoff/gui/frames/visual.py index 2f6a5a2..37cb90c 100644 --- a/jfr_playoff/gui/frames/visual.py +++ b/jfr_playoff/gui/frames/visual.py @@ -335,8 +335,8 @@ class PositionsSelectionFrame(SelectionFrame): def renderOption(self, container, option, idx): (ttk.Checkbutton( - container, text=str(idx+1), - variable=self.values[idx] + container, text=str(self._mapValue(idx, option)), + variable=self.values[self._mapValue(idx, option)] )).grid( row=(idx/self.COLUMN_COUNT)+1, column=idx%self.COLUMN_COUNT, sticky=tk.W) |