INNER CODE UNIT · Python

Wait

loxy0devlp/RedTiger-Tools · Config/Utils.py:126

def Wait(message):
    return print(f"{BEFORE}{Hour()}{AFTER} {WAIT} {message}{reset}")

def Input(message):
    return input(f"{BEFORE}{Hour()}{AFTER} {INPUT} {message}{reset}")

def Title(title):
    if os_name == "Windows": ctypes.windll.kernel32.SetConsoleTitleW(f"{tool_name} v{tool_version} - {title}")
    elif os_name == "Linux": sys.stdout.write(f"\x1b]2;{tool_name} v{tool_version} - {title}\x07")

def Clear():
    if os_name == "Windows": subprocess.run("cls",   shell=True)
    elif os_name == "Linux": subprocess.run("clear", shell=True)

def Start():
    if os_name == "Windows": subprocess.run(['python',  path_file_tool])
    elif os_name == "Linux": subprocess.run(['python3', path_file_tool])

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…