def addSelection(self, name, reference, width=None, sep=u'  '):
    if app.config.strict_debug:
        assert isinstance(name, unicode)
    if 1:
        toggleOn = (u'(*)' + name)
        toggleOff = (u'( )' + name)

    def draw(control):
        return (toggleOn if control[u'dict'][control[u'name']] else toggleOff)
    width = max(width, min(len(toggleOn), len(toggleOff)))
    self.addElement(draw, u'selection', name, reference, width, sep, len(u'(*)'))
def addSelection(self, name, reference, width=None, sep=u'  '):
    if app.config.strict_debug:
        assert isinstance(name, unicode)
    if 1:
        toggleOn = (u'(*)' + name)
        toggleOff = (u'( )' + name)

    def draw(control):
        return (toggleOn if control[u'dict'][control[u'name']] else toggleOff)
    width = max(width, min(len(toggleOn), len(toggleOff)))
    self.addElement(draw, u'selection', name, reference, width, sep, len(u'(*)'))