예제 #1
0
 def white(text: str):
     return Template.color_text(text=text, front='white')
예제 #2
0
 def __init__(self, text):
     print(Template.stylish_text(text=text, style='italic'))
예제 #3
0
 def bold_on_yellow(cls, text):
     print(Template.highlight_text(text=text, style='bold', front=cls.color, back='yellow'))
예제 #4
0
 def italic_on_green(cls, text):
     print(Template.highlight_text(text=text, style='italic', front=cls.color, back='green'))
예제 #5
0
 def on_purple(cls, text):
     print(Template.highlight_text(text=text, front=cls.color, back='purple'))
예제 #6
0
 def on_white(cls, text):
     print(Template.highlight_text(text=text, front=cls.color, back='white'))
예제 #7
0
 def red(text: str):
     return Template.color_text(text=text, front='red')
예제 #8
0
 def on_red(cls, text):
     print(Template.highlight_text(text=text, front=cls.color, back='red'))
예제 #9
0
 def __init__(self, text):
     print(Template.color_text(text=text, front=white.color))
     super().__init__(text)
예제 #10
0
 def black(text: str):
     return Template.color_text(text=text, front='black')
예제 #11
0
 def __init__(self, text):
     print(Template.color_text(text=text, front=blue.color))
예제 #12
0
 def italic_on_white(cls, text):
     print(Template.highlight_text(text=text, style='italic', front=cls.color, back='white'))
예제 #13
0
 def italic_on_yellow(cls, text):
     print(Template.highlight_text(text=text, style='italic', front=cls.color, back='yellow'))
예제 #14
0
 def __init__(self, text):
     print(Template.stylish_text(text=text, style='underline'))
예제 #15
0
 def green(text: str):
     return Template.color_text(text=text, front='green')
예제 #16
0
 def on_black(cls, text):
     print(Template.highlight_text(text=text, front=cls.color, back='black'))
예제 #17
0
 def yellow(text: str):
     return Template.color_text(text=text, front='yellow')
예제 #18
0
 def on_yellow(cls, text):
     print(Template.highlight_text(text=text, front=cls.color, back='yellow'))
예제 #19
0
 def blue(text: str):
     return Template.color_text(text=text, front='blue')
예제 #20
0
 def on_cyan(cls, text):
     print(Template.highlight_text(text=text, front=cls.color, back='cyan'))
예제 #21
0
 def purple(text: str):
     return Template.color_text(text=text, front='purple')
예제 #22
0
 def bold_on_green(cls, text):
     print(Template.highlight_text(text=text, style='bold', front=cls.color, back='green'))
예제 #23
0
 def cyan(text: str):
     return Template.color_text(text=text, front='cyan')
예제 #24
0
 def bold_on_purple(cls, text):
     print(Template.highlight_text(text=text, style='bold', front=cls.color, back='purple'))
예제 #25
0
        return Template.color_text(text=text, front='yellow')

    @staticmethod
    def blue(text: str):
        return Template.color_text(text=text, front='blue')

    @staticmethod
    def purple(text: str):
        return Template.color_text(text=text, front='purple')

    @staticmethod
    def cyan(text: str):
        return Template.color_text(text=text, front='cyan')

    @staticmethod
    def white(text: str):
        return Template.color_text(text=text, front='white')

if __name__ == "__main__":
    red('Error, does not compute!')
    blue('Error, does not compute!')
    white('Error, does not compute!')
    # say('Error, does not compute!')
    red.on_green('Error, does not compute!')
    white.bold_on_green('Error, does not compute!')
    blue.on_green('Error, does not compute!')
    clear()
    red(Template.stylish_text(text='Error, does not compute!', style='bold'))
    underline(Template.stylish_text(text='Error, does not compute!', style='bold'))
    print(f"{ColorText.cyan('cyan!')}{ColorText.blue('blue!')}")
    print(Template.color_text(text='Erute!', front='cyan'))