git.cweiske.de
/
enigma2.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
63ad558
)
allow setting a boolean value
author
Felix Domke
<tmbinc@elitedvb.net>
Wed, 23 Apr 2008 10:24:18 +0000
(10:24 +0000)
committer
Felix Domke
<tmbinc@elitedvb.net>
Wed, 23 Apr 2008 10:24:18 +0000
(10:24 +0000)
lib/python/Components/Sources/Boolean.py
patch
|
blob
|
history
diff --git
a/lib/python/Components/Sources/Boolean.py
b/lib/python/Components/Sources/Boolean.py
index
f2526a4
..
c92027a
100644
(file)
--- 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,))