-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsandbox.py
71 lines (51 loc) · 1.56 KB
/
sandbox.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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
# import json
# # buttonConfig = json.load(open("spiceShuttle.json"))
# # # for i in range(3):
# # # print(buttonConfig["buttons"][i]["buttonLabel"])
# # for button in buttonConfig:
# # print(button)
# print("bruh", flush = True)
import sys
import time
# for i in range(10):
# print(i, end =' ')
# sys.stdout.flush()
# time.sleep(1)
while True:
lstng = "\rlistening"
elip = "."
for i in range(4):
string = lstng + elip
sys.stdout.write(lstng + ((i) * elip))
time.sleep(1)
sys.stdout.write("\r ")
sys.stdout.flush
# sys.stdout.write("\rlistening")
# time.sleep(1)
# sys.stdout.flush()
# sys.stdout.write(" ")
# sys.stdout.write("\rlistening.")
# time.sleep(1)
# sys.stdout.flush()
# sys.stdout.write(" ")
# sys.stdout.write("\rlistening..")
# time.sleep(1)
# sys.stdout.flush()
# sys.stdout.write(" ")
# sys.stdout.write("\rlistening...")
# time.sleep(1)
# sys.stdout.flush()
# sys.stdout.write("\rbruh")
# time.sleep(1)
# sys.stdout.flush()
# sys.stdout.write("\r ")
# time.sleep(1)
# ! this one works
# def printTalking(self): #place holder function
# lstng = "\rtalking"
# elip = "."
# for i in range(4):
# sys.stdout.write(lstng + ((i) * elip))
# time.sleep(1)
# sys.stdout.write("\r ") #line ends
# sys.stdout.flush