summaryrefslogtreecommitdiff
path: root/jfr_playoff/gui/variables.py
diff options
context:
space:
mode:
Diffstat (limited to 'jfr_playoff/gui/variables.py')
-rw-r--r--jfr_playoff/gui/variables.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/jfr_playoff/gui/variables.py b/jfr_playoff/gui/variables.py
index 9dcbff2..7e6989c 100644
--- a/jfr_playoff/gui/variables.py
+++ b/jfr_playoff/gui/variables.py
@@ -26,6 +26,11 @@ class NotifyStringVar(NotifyVar, tk.StringVar):
class NotifyIntVar(NotifyVar, tk.IntVar):
pass
+class NotifyBoolVar(NotifyVar, tk.StringVar):
+ def get(self, *args, **kwargs):
+ value = tk.StringVar.get(self, *args, **kwargs)
+ return int(value == '1')
+
class NotifyNumericVar(NumericVar, NotifyVar):
def __init__(self, *args, **kwargs):
NotifyVar.__init__(self, *args, **kwargs)