def __init__(self, text): self.text = text self.color = [random.random() for i in (1,2,3)] self.type = 'text' Text.__init__(self, text = text, font_size = 50, color = self.color, **std_params)
def __init__(self, stim_string): self.stim_string = stim_string Text.__init__(self, text=stim_string, font_size=50, color=[200, 200, 200], **std_params)
def __init__(self,face): self.face = face Text.__init__(self, text=face, font_size=50, color=[random.random() for i in (1,2,3)], **std_params)