def removeThis_addToggle(self, name, reference, width=None, sep=u'  '):
    if app.config.strict_debug:
        assert isinstance(name, unicode)
    if 1:
        toggleOn = (u'[x]' + name)
        toggleOff = (u'[ ]' + name)
    if 0:
        toggleOn = ((unichr(9746) + ' ') + control['name'])
        toggleOff = ((unichr(9744) + ' ') + control['name'])
    if 0:
        toggleOn = (('[+' + control['name']) + ']')
        toggleOff = (('[-' + control['name']) + ']')

    def draw(control):
        return (toggleOn if control['dict'][control['name']] else toggleOff)
    width = max(width, min(len(toggleOn), len(toggleOff)))
    self.addElement(draw, u'toggle', name, reference, width, sep, len('[-]'))
def removeThis_addToggle(self, name, reference, width=None, sep=u'  '):
    if app.config.strict_debug:
        assert isinstance(name, unicode)
    if 1:
        toggleOn = (u'[x]' + name)
        toggleOff = (u'[ ]' + name)
    if 0:
        toggleOn = ((unichr(9746) + ' ') + control['name'])
        toggleOff = ((unichr(9744) + ' ') + control['name'])
    if 0:
        toggleOn = (('[+' + control['name']) + ']')
        toggleOff = (('[-' + control['name']) + ']')

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