def __init__(self, program, parent, label, prefCategory, prefName, width=None):
    if app.config.strict_debug:
        assert issubclass(program.__class__, app.ci_program.CiProgram), program
        assert isinstance(label, unicode)
        assert isinstance(prefCategory, unicode)
        assert isinstance(prefName, unicode)
    OptionsTrinaryStateWindow.__init__(self, program, parent, label, prefCategory, prefName)
    self.color = self.program.color.get(u'top_info')

    def draw(label, decoration, width):
        if (width < 0):
            x = (u'%s %s' % (label, decoration))
        else:
            x = (u'%s %s' % (decoration, label))
        return (u'%*s' % (width, x))
    OptionsTrinaryStateWindow.setUp(self, draw(label, u'v', width), draw(label, u'^', width), draw(label, u'-', width))
def __init__(self, program, parent, label, prefCategory, prefName, width=None):
    if app.config.strict_debug:
        assert issubclass(program.__class__, app.ci_program.CiProgram), program
        assert isinstance(label, unicode)
        assert isinstance(prefCategory, unicode)
        assert isinstance(prefName, unicode)
    OptionsTrinaryStateWindow.__init__(self, program, parent, label, prefCategory, prefName)
    self.color = self.program.color.get(u'top_info')

    def draw(label, decoration, width):
        if (width < 0):
            x = (u'%s %s' % (label, decoration))
        else:
            x = (u'%s %s' % (decoration, label))
        return (u'%*s' % (width, x))
    OptionsTrinaryStateWindow.setUp(self, draw(label, u'v', width), draw(label, u'^', width), draw(label, u'-', width))