summaryrefslogtreecommitdiff
path: root/jfr_playoff/gui/frames/match.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/match.py
parent10cab28b7e5280066cd6b4442d0d3ded11e812e6 (diff)
Fixing checkbox behaviour/value storage for boolean variables
Diffstat (limited to 'jfr_playoff/gui/frames/match.py')
-rw-r--r--jfr_playoff/gui/frames/match.py11
1 files changed, 6 insertions, 5 deletions
diff --git a/jfr_playoff/gui/frames/match.py b/jfr_playoff/gui/frames/match.py
index c91119d..7d0b923 100644
--- a/jfr_playoff/gui/frames/match.py
+++ b/jfr_playoff/gui/frames/match.py
@@ -12,7 +12,8 @@ from ..frames import SelectionFrame, SelectionButton, RefreshableOptionMenu
from ..frames.team import DBSelectionField, TeamSelectionFrame
from ..frames.team import TeamSelectionButton
from ..frames.visual import PositionsSelectionFrame
-from ..variables import NotifyStringVar, NotifyIntVar, NotifyNumericVar
+from ..variables import NotifyStringVar, NotifyIntVar
+from ..variables import NotifyNumericVar, NotifyBoolVar
class SwissSettingsFrame(RepeatableFrame):
SOURCE_LINK = 0
@@ -51,9 +52,9 @@ class SwissSettingsFrame(RepeatableFrame):
self.fetchDB = NotifyStringVar()
self.fetchLink = NotifyStringVar()
self.setFrom = NotifyNumericVar()
- self.setToEnabled = NotifyIntVar()
+ self.setToEnabled = NotifyBoolVar()
self.setTo = NotifyNumericVar()
- self.fetchFromEnabled = NotifyIntVar()
+ self.fetchFromEnabled = NotifyBoolVar()
self.fetchFrom = NotifyNumericVar()
self.linkLabel = NotifyStringVar()
self.linkRelPath = NotifyStringVar()
@@ -304,7 +305,7 @@ class BracketMatchSettingsFrame(GuiFrame):
self.source = NotifyIntVar()
self.source.trace('w', self._enablePanels)
self.source.trace('w', self._configChangeNotify)
- self.selected = NotifyIntVar()
+ self.selected = NotifyBoolVar()
self.selected.trace('w', self._enablePanels)
self.selectedIndex = NotifyStringVar()
self.positions = []
@@ -487,7 +488,7 @@ class MatchSettingsFrame(RepeatableFrame):
self.scoreRound = NotifyNumericVar()
self.scoreTable = NotifyNumericVar()
self.scoreCustom = [NotifyStringVar(), NotifyStringVar()]
- self.scoreNotFinished = NotifyIntVar()
+ self.scoreNotFinished = NotifyBoolVar()
self.scoreNotFinished.trace('w', self._enablePanels)
self.scoreBoards = NotifyNumericVar()