starting user interface
This commit is contained in:
parent
55758bea41
commit
23c1f3bd5d
5
bin/config/banner.txt
Normal file
5
bin/config/banner.txt
Normal file
@ -0,0 +1,5 @@
|
||||
==============
|
||||
| TILDE TOWN |
|
||||
| BLOGGING |
|
||||
| PLATFORM |
|
||||
==============
|
33
bin/ttbp.py
Normal file
33
bin/ttbp.py
Normal file
@ -0,0 +1,33 @@
|
||||
#!/usr/bin/python
|
||||
|
||||
import core
|
||||
|
||||
import os
|
||||
|
||||
WWW = os.path.join("..","www")
|
||||
CONFIG = os.path.join("config")
|
||||
DATA = os.path.join("..", "data")
|
||||
|
||||
BANNER = open(os.path.join(CONFIG, "banner.txt")).read()
|
||||
CLOSER = "\n\tsee you later, space cowboy..."
|
||||
|
||||
def start():
|
||||
print(BANNER)
|
||||
print("\n\n\n\n")
|
||||
try:
|
||||
print(main_menu())
|
||||
except ValueError or SyntaxError:
|
||||
print("oh no i didn't understand that")
|
||||
print(main_menu())
|
||||
except KeyboardInterrupt:
|
||||
print("eject button fired")
|
||||
print(main_menu())
|
||||
print(CLOSER)
|
||||
|
||||
def main_menu():
|
||||
|
||||
print("how are you feeling today? ")
|
||||
|
||||
input()
|
||||
|
||||
return main_menu()
|
Loading…
x
Reference in New Issue
Block a user