-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.py
38 lines (38 loc) · 1.02 KB
/
main.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
__author__ = 'willb'
import webview
import requests
import os
import sys
import easygui
import scripts.settings as settings
import scripts.screensmain as screensmain
class main():
def start(self):
screensmain.main().start()
def main_ui(self):
ui_choices=[
"Start",
"Settings",
"Exit"
]
ui_choice=easygui.buttonbox(
msg="Welcome to the Wall Program, please make a selection",
title="Wall Program",
choices=ui_choices)
return ui_choice
def __init__(self):
easygui.msgbox("Welcome to the Wall Program")
choice=self.main_ui()
if choice=="Start":
self.start()
elif choice=="Settings":
settings.main().settings_ui()
elif choice=="Exit":
sys.exit()
elif choice==None:
sys.exit()
else:
easygui.msgbox("Unrecognized choice {0}".format(str(choice)))
sys.exit()
if __name__ == "__main__":
main()