-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.py
More file actions
53 lines (48 loc) · 1.31 KB
/
main.py
File metadata and controls
53 lines (48 loc) · 1.31 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
#!/usr/bin/env python
# encoding: utf-8
from commands import *
from DB_GetUsers import *
from DB_AddUser import *
print('[########################]')
print('[# #]')
print('[# #]')
print('[# Skript von #]')
print('[# #]')
print('[# Felix #]')
print('[# Malte #]')
print('[# Nagehan #]')
print('[# #]')
print('[# #]')
print('[########################]')
print('')
print('Internetverbindung: ✓ | ✘')
print('')
print('Datenbankverbindung: ✓ | ✘')
print('')
print('')
while True:
print('[########################]')
print('')
print('Help:')
print('')
print('-h -> Get the Help Page')
print('-i -> Get the Info Page')
print('-adduser -> Create a User')
print('-getuser -> Get Info about a User')
print('-deluser -> Delete a User')
print('')
print('[########################]')
#Commandsabfrage
commands = input("Command: ")
print
if commands == "-h":
print('')
elif commands == "-i":
info()
elif commands == "-adduser":
AddUser.CreateForm()
elif commands == "-getuser":
GetUsers().ListUsersFromDB()
elif commands == "-deluser":
print('')
sleep(1)