From 2ff2fb0495febe11d5015d2308d67e1d8048e597 Mon Sep 17 00:00:00 2001 From: Walter Purcaro Date: Thu, 10 Apr 2014 13:37:02 +0200 Subject: Some code cosmetics about commas, spaces and quotes Merges #577 --- module/gui/SettingsWidget.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'module/gui/SettingsWidget.py') diff --git a/module/gui/SettingsWidget.py b/module/gui/SettingsWidget.py index ebe849d48..4e8440667 100644 --- a/module/gui/SettingsWidget.py +++ b/module/gui/SettingsWidget.py @@ -117,7 +117,7 @@ class SettingsWidget(QWidget): elif not item.type.find(";") == -1: i.setCurrentIndex(i.findText(item.value)) elif item.type == "bool": - if True if item.value.lower() in ("1","true", "on", "an","yes") else False: + if True if item.value.lower() in ("1", "true", "on", "an", "yes") else False: i.setCurrentIndex(0) else: i.setCurrentIndex(1) @@ -141,7 +141,7 @@ class SettingsWidget(QWidget): if item.name in widget.inputs: i = widget.inputs[item.name] - #TODO : unresolved reference: option + #TODO: unresolved reference: option if item.type == "int": if i.value() != int(item.value): @@ -150,7 +150,7 @@ class SettingsWidget(QWidget): if i.currentText() != item.value: self.connector.setConfigValue(k, option, i.currentText(), sec) elif item.type == "bool": - if (True if item.value.lower() in ("1","true", "on", "an","yes") else False) ^ (not i.currentIndex()): + if (True if item.value.lower() in ("1", "true", "on", "an", "yes") else False) ^ (not i.currentIndex()): self.connector.setConfigValue(k, option, not i.currentIndex(), sec) else: if i.text() != item.value: @@ -191,7 +191,7 @@ class Section(QGroupBox): i = QComboBox(self) i.addItem(_("Yes"), QVariant(True)) i.addItem(_("No"), QVariant(False)) - if True if option.value.lower() in ("1","true", "on", "an","yes") else False: + if True if option.value.lower() in ("1", "true", "on", "an", "yes") else False: i.setCurrentIndex(0) else: i.setCurrentIndex(1) -- cgit v1.2.3