summaryrefslogtreecommitdiff
path: root/jfr_playoff/gui/frames/__init__.py
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2019-11-16 14:45:37 +0100
committeremkael <emkael@tlen.pl>2019-11-16 14:45:37 +0100
commit2f2d4788d7f501e76f3b86bec0ad732dc2387433 (patch)
treec01f5e20a9323cf229fe067547c356389765dc3b /jfr_playoff/gui/frames/__init__.py
parent10cab28b7e5280066cd6b4442d0d3ded11e812e6 (diff)
Fixing checkbox behaviour/value storage for boolean variables
Diffstat (limited to 'jfr_playoff/gui/frames/__init__.py')
-rw-r--r--jfr_playoff/gui/frames/__init__.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/jfr_playoff/gui/frames/__init__.py b/jfr_playoff/gui/frames/__init__.py
index a02791d..f4fdf4f 100644
--- a/jfr_playoff/gui/frames/__init__.py
+++ b/jfr_playoff/gui/frames/__init__.py
@@ -7,7 +7,8 @@ import tkinter as tk
from tkinter import ttk
import tkMessageBox
-from ..variables import NotifyStringVar, NotifyIntVar, NotifyNumericVar, NumericVar
+from ..variables import NotifyStringVar, NotifyIntVar
+from ..variables import NotifyBoolVar, NotifyNumericVar, NumericVar
def setPanelState(frame, state):
for child in frame.winfo_children():
@@ -355,7 +356,7 @@ class SelectionFrame(ScrollableFrame):
self.renderHeader(container)
for idx, option in enumerate(self.options):
key = self._mapValue(idx, option)
- self.values[key] = NotifyIntVar()
+ self.values[key] = NotifyBoolVar()
self.renderOption(container, option, idx)
if self.selected and key in self.selected:
self.values[key].set(True)