add Boolean source, add ServiceInfo boolean sources, add ConditionalShowHide converte...
[enigma2.git] / lib / python / Components / Converter / ConditionalShowHide.py
diff --git a/lib/python/Components/Converter/ConditionalShowHide.py b/lib/python/Components/Converter/ConditionalShowHide.py
new file mode 100644 (file)
index 0000000..56fb145
--- /dev/null
@@ -0,0 +1,11 @@
+from Converter import Converter
+
+class ConditionalShowHide(Converter, object):
+
+       def __init__(self, type, *args, **kwargs):
+               Converter.__init__(self)
+               self.invert = type == "Invert"
+
+       def changed(self):
+               for x in self.downstream_elements:
+                       x.visible = self.source.boolean