def when(self, switch):
        if switch:
            return self
A method which returns `self` or None based on the truthness
dataset/ETHPy150Open nucleic/enaml/enaml/widgets/constraints_widget.py/ConstraintsWidget.when