def __init__()

in colorSchemeTool.py [0:0]


    def __init__(self, id, parent, scope=None, foreground=None, background=None, font_style=0, effect_type=None):
        self.id = id
        self.parent = parent
        self.scope = scope
        if id in default_attributes:
            self.value = default_attributes[id]
            if background == IGNORE_COLOR:
                self.value.default_back = IGNORE_COLOR_VALUE
            if foreground == IGNORE_COLOR:
                self.value.default_fore = IGNORE_COLOR_VALUE
            self.value.parent = parent
        else:
            self.value = DerivedAttributeValue(parent=parent)
            if foreground:
                self.value.default_fore = rgb256_to_hex(*foreground) if foreground != IGNORE_COLOR else IGNORE_COLOR_VALUE
            if background:
                self.value.default_back = rgb256_to_hex(*background) if background != IGNORE_COLOR else IGNORE_COLOR_VALUE
            if font_style:
                self.value.default_font = font_style
            if effect_type:
                self.value.effect_type = effect_type
        all_attributes.append(self)