summaryrefslogtreecommitdiff
path: root/jfr_playoff/gui/frames/visual.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/visual.py
parent10cab28b7e5280066cd6b4442d0d3ded11e812e6 (diff)
Fixing checkbox behaviour/value storage for boolean variables
Diffstat (limited to 'jfr_playoff/gui/frames/visual.py')
-rw-r--r--jfr_playoff/gui/frames/visual.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/jfr_playoff/gui/frames/visual.py b/jfr_playoff/gui/frames/visual.py
index 147d6fe..1cbe177 100644
--- a/jfr_playoff/gui/frames/visual.py
+++ b/jfr_playoff/gui/frames/visual.py
@@ -10,7 +10,7 @@ from ..frames import GuiFrame, RepeatableFrame, ScrollableFrame
from ..frames import WidgetRepeater
from ..frames import SelectionFrame, RefreshableOptionMenu, NumericSpinbox
from ..frames.team import TeamSelectionButton
-from ..variables import NotifyStringVar, NotifyIntVar, NotifyNumericVar
+from ..variables import NotifyStringVar, NotifyNumericVar, NotifyBoolVar
class VisualSettingsFrame(GuiFrame):
DEFAULT_VALUES = {
@@ -32,17 +32,17 @@ class VisualSettingsFrame(GuiFrame):
}
def renderContent(self):
- self.startingPositionIndicators = NotifyIntVar()
- self.finishingPositionIndicators = NotifyIntVar()
+ self.startingPositionIndicators = NotifyBoolVar()
+ self.finishingPositionIndicators = NotifyBoolVar()
self.boxWidth = NotifyNumericVar()
self.boxHeight = NotifyNumericVar()
self.boxMargin = NotifyNumericVar()
- self.shortenTeamNames = NotifyIntVar()
+ self.shortenTeamNames = NotifyBoolVar()
self.teamNameLength = NotifyNumericVar()
self.teamNameEllipsis = NotifyStringVar()
- self.teamNamePredict = NotifyIntVar()
+ self.teamNamePredict = NotifyBoolVar()
self.teamNamePlaceholder = NotifyStringVar()
- self.teamNameSortPredictions = NotifyIntVar()
+ self.teamNameSortPredictions = NotifyBoolVar()
self.teamLabelSeparator = NotifyStringVar()
self.teamNameSeparator = NotifyStringVar()
self.teamNamePrefix = NotifyStringVar()