diff options
| author | Felix Domke <tmbinc@elitedvb.net> | 2008-04-23 10:24:18 +0000 |
|---|---|---|
| committer | Felix Domke <tmbinc@elitedvb.net> | 2008-04-23 10:24:18 +0000 |
| commit | f80cd44acb9f06d348f3b0fb09036d7db7e83b66 (patch) | |
| tree | bdaa9b9947561398ca0ceb3a34425b6f633d64cb /lib/python/Components | |
| parent | 63ad55839aa3ab4902c4e62063259a49a17e7f49 (diff) | |
| download | enigma2-f80cd44acb9f06d348f3b0fb09036d7db7e83b66.tar.gz enigma2-f80cd44acb9f06d348f3b0fb09036d7db7e83b66.zip | |
allow setting a boolean value
Diffstat (limited to 'lib/python/Components')
| -rw-r--r-- | lib/python/Components/Sources/Boolean.py | 7 |
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,)) |
