From 2f2d4788d7f501e76f3b86bec0ad732dc2387433 Mon Sep 17 00:00:00 2001 From: emkael Date: Sat, 16 Nov 2019 14:45:37 +0100 Subject: Fixing checkbox behaviour/value storage for boolean variables --- jfr_playoff/gui/frames/visual.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'jfr_playoff/gui/frames/visual.py') 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() -- cgit v1.2.3