Esempio n. 1
0
 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()
 def get_duration(self, screen_name):
     screen_duration = int(settings.main().get_setting(screen_name))
     return screen_duration