def setUp(self, toggleOn, toggleOff, toggleUndefined, width=None):
    if app.config.strict_debug:
        assert isinstance(toggleOn, unicode)
        assert isinstance(toggleOff, unicode)
        assert isinstance(toggleUndefined, unicode)
        assert ((width is None) or isinstance(width, int))
    self.toggleOn = toggleOn
    self.toggleOff = toggleOff
    self.toggleUndefined = toggleUndefined
    longest = max(len(toggleOn), len(toggleOff), len(toggleUndefined))
    self.width = (width if (width is not None) else longest)
    self.updateLabel()
def setUp(self, toggleOn, toggleOff, toggleUndefined, width=None):
    if app.config.strict_debug:
        assert isinstance(toggleOn, unicode)
        assert isinstance(toggleOff, unicode)
        assert isinstance(toggleUndefined, unicode)
        assert ((width is None) or isinstance(width, int))
    self.toggleOn = toggleOn
    self.toggleOff = toggleOff
    self.toggleUndefined = toggleUndefined
    longest = max(len(toggleOn), len(toggleOff), len(toggleUndefined))
    self.width = (width if (width is not None) else longest)
    self.updateLabel()