aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Components/Sources
diff options
context:
space:
mode:
Diffstat (limited to 'lib/python/Components/Sources')
-rw-r--r--lib/python/Components/Sources/Boolean.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/python/Components/Sources/Boolean.py b/lib/python/Components/Sources/Boolean.py
index f2526a45..c92027ae 100644
--- a/lib/python/Components/Sources/Boolean.py
+++ b/lib/python/Components/Sources/Boolean.py
@@ -28,7 +28,12 @@ class Boolean(Source, object):
else:
return self.fixed
- boolean = property(getBoolean)
+ def setBoolean(self, value):
+ assert self.function is None
+ self.fixed = value
+ self.poll()
+
+ boolean = property(getBoolean, setBoolean)
def poll(self):
self.changed((self.CHANGED_ALL,))