-
Notifications
You must be signed in to change notification settings - Fork 0
/
helpers.py
42 lines (35 loc) · 873 Bytes
/
helpers.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
"""
Helper and reused methods.
"""
import os
class Helpers(object):
""" Helper methods. """
@staticmethod
def return_to_menu():
try:
os.system('pause')
except WindowsError:
os.system('read -p "Press any key to continue"')
@staticmethod
def clear():
os.system('cls' if os.name == 'nt' else 'clear')
@staticmethod
def restart():
os.execl('./startup.py', 'startup.py')
@staticmethod
def get_header():
print """
__.----.
_.' `-.
/ _____ `-.
/_.-"" ""-._ \\
." _......._ ". \\
; .-' _ ))) _ `-. ; |
`/ ." _ _ ". \\'. /
_| .-.^ ) ^.-. |_ \/-.
\ `"==-.(_).-=="' // \\
`.____.-^-.____.' \ /
| \`-'/ | `--'
\ ` /
`. .'
`-.....-'"""