git.cweiske.de
/
enigma2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add possibility to use ValueRange as ValueEqual Converter
[enigma2.git]
/
lib
/
python
/
Components
/
Sources
/
Boolean.py
diff --git
a/lib/python/Components/Sources/Boolean.py
b/lib/python/Components/Sources/Boolean.py
index bd5222afa33008ccd305d213410de865d6c884c8..9ca5613d54227e1fa7b5ae0f0dcf83d04d5efa6e 100644
(file)
--- a/
lib/python/Components/Sources/Boolean.py
+++ b/
lib/python/Components/Sources/Boolean.py
@@
-1,4
+1,5
@@
from Source import Source
from Source import Source
+from Components.Element import cached
from enigma import eTimer
# a small warning:
from enigma import eTimer
# a small warning:
@@
-16,6
+17,7
@@
class Boolean(Source, object):
self.poll_timer.timeout.get().append(self.poll)
self.poll_timer.start(poll)
self.poll_timer.timeout.get().append(self.poll)
self.poll_timer.start(poll)
+ @cached
def getBoolean(self):
if self.function is not None:
return self.function()
def getBoolean(self):
if self.function is not None:
return self.function()