-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmenu.py
More file actions
63 lines (48 loc) · 1.27 KB
/
menu.py
File metadata and controls
63 lines (48 loc) · 1.27 KB
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
import os
os.system("tput setaf 1")
print(" hello welcome to this terminal user interface__________")
os.system("tput setaf 7")
print(""" Hey welcome to my TUI makes life easy
---------------------------------------------------------
where would you like to go (Local or Remote)?""")
c=input()
os.system("tput setaf 7")
if c== "local":
print("""
___ MENU___
1.see date
2.to check cal
3 .conf web server
4.to create a user
5 .create file
6.to setup a network
7.to exit
Enter your choice:
""")
ch=input()
if int(ch)== 1:
os.system("date")
elif int(ch)== 2:
os.system("cal")
if int(ch)== 3:
os.system("date")
elif int(ch)== 4:
os.system("cal")
if int(ch)== 5:
os.system("date")
elif int(ch)== 6:
os.system("cal")
if int(ch)== 7:
os.system("exit")
else:
print("remote")
print("""
___ MENU___
1.see date
2.to check cal
3.conf web server
4.to create a user
5.create file
6.to setup a network
7.to exit
""")