aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Components/Sources/Boolean.py
diff options
context:
space:
mode:
authorFelix Domke <tmbinc@elitedvb.net>2008-04-23 10:24:18 +0000
committerFelix Domke <tmbinc@elitedvb.net>2008-04-23 10:24:18 +0000
commitf80cd44acb9f06d348f3b0fb09036d7db7e83b66 (patch)
treebdaa9b9947561398ca0ceb3a34425b6f633d64cb /lib/python/Components/Sources/Boolean.py
parent63ad55839aa3ab4902c4e62063259a49a17e7f49 (diff)
downloadenigma2-f80cd44acb9f06d348f3b0fb09036d7db7e83b66.tar.gz
enigma2-f80cd44acb9f06d348f3b0fb09036d7db7e83b66.zip
allow setting a boolean value
Diffstat (limited to 'lib/python/Components/Sources/Boolean.py')
-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,))