in colorSchemeTool.py [0:0]
def __init__(self, foreground=None, background=None, foreground_rgb=None, background_rgb=None,
font_style=0, effect_type=0):
if foreground_rgb:
self.foreground = rgb256_to_hex(*foreground_rgb)
else:
self.foreground = foreground
if background_rgb:
self.background = rgb256_to_hex(*background_rgb)
else:
self.background = background
self.font_style = font_style
self.error_stripe = None
self.effect_color = None
self.effect_type = effect_type
self.inherited = False