-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathozel_program_baslangici.py
54 lines (47 loc) · 1.67 KB
/
ozel_program_baslangici.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# -*- coding: utf-8 -*-
from termcolor import cprint
import os
import time
import sys
CURSOR_UP_ONE = '\x1b[1A'
ERASE_LINE = '\x1b[2K'
class giris:
@staticmethod
def yukleme():
i = 1
while i < 10:
cprint("Yükleniyor.",color="green")
time.sleep(0.2)
sys.stdout.write(CURSOR_UP_ONE)
sys.stdout.write(ERASE_LINE)
cprint("Yükleniyor..",color="red")
time.sleep(0.2)
sys.stdout.write(CURSOR_UP_ONE)
sys.stdout.write(ERASE_LINE)
cprint("Yükleniyor...",color="blue")
time.sleep(0.2)
i = i + 1
sys.stdout.write(CURSOR_UP_ONE)
sys.stdout.write(ERASE_LINE)
@staticmethod
def logo():
cprint(r" _ _____ ____ ____ _ ____ ____ ",color="green")
time.sleep(0.3)
cprint(r"| |/ / _ \| _ \ _ | _ \ / \ | _ \/ ___| ",color="green")
time.sleep(0.3)
cprint(r"| ' / | | | | | (_) | |_) / _ \ | |_) \___ \ ",color="green")
time.sleep(0.3)
cprint(r"| . \ |_| | |_| |_ | __/ ___ \| _ < ___) |",color="green")
time.sleep(0.3)
cprint(r"|_|\_\___/|____/(_) |_| /_/ \_\_| \_\____/ ",color="green")
time.sleep(0.3)
cprint(" ",color="green")
@staticmethod
def uyari():
cprint("BU PROGRAMI KULLANARAK SORUMLULUĞU ÜSTLENMİŞ OLURSUNUZ!!!\n",
color="red", attrs=["bold",'underline'])
time.sleep(1)
if __name__ == "__main__":
giris.yukleme()
giris.logo()
giris.uyari()