Skip to content
Snippets Groups Projects
style.py 546 B
Newer Older
# -*- coding: utf-8 -*-

from colorama import init, Back, Fore, Style

init()


def mark_long(text):
    return ('{Style.BRIGHT}{text}{Style.NORMAL}'
            .format(Style=Style, text=text))


def mark_wrong_length(text):
    return ('{Fore.RED}{text}{Fore.RESET}'
            .format(Fore=Fore, text=text))


def mark_wrong_syllables(text):
    return ('{Back.RED}{text}{Back.RESET}'
            .format(Back=Back, text=text))


def mark_correct(text):
    return ('{Fore.GREEN}{text}{Fore.RESET}'
            .format(Fore=Fore, text=text))