1 from Converter import Converter
3 class ConditionalShowHide(Converter, object):
4 def __init__(self, type):
5 Converter.__init__(self, type)
6 self.invert = type == "Invert"
8 def changed(self, what):
9 for x in self.downstream_elements:
10 x.visible = self.source.boolean ^ self.invert