def create_CPS_Game (root, currGuiState, param=None): '''Starting point when module is imported by another program.''' global w, w_win, rt rt = root w = Toplevel (root) w.title('CPS_Game') w.geometry('1301x744+65+24') cpsGame_supportGTS.set_Tk_var() w_win = CPS_Game (currGuiState, w) cpsGame_supportGTS.init(w, w_win, param) return w_win
def create_CPS_Game(root, currGuiState, param=None): '''Starting point when module is imported by another program.''' global w, w_win, rt rt = root w = Toplevel(root) w.title('CPS_Game') w.geometry('1301x744+65+24') cpsGame_supportGTS.set_Tk_var() w_win = CPS_Game(currGuiState, w) cpsGame_supportGTS.init(w, w_win, param) return w_win
def vp_start_gui(): '''Starting point when module is the main routine.''' global val, w, root, currGuiState root = Tk() root.title('CPS_Game') root.geometry('1301x744+65+24') #cpsGame_support.set_Tk_var() currGuiState = cpsGame_supportGTS.guiState() w = CPS_Game (currGuiState, root) cpsGame_supportGTS.init(root, w) try: img = PhotoImage(file='../robot_icon.gif') root.tk.call('wm', 'iconphoto', root._w, img) except: # catch *all* exceptions print "Failed to display icon" root.mainloop()
def vp_start_gui(): '''Starting point when module is the main routine.''' global val, w, root, currGuiState root = Tk() root.title('CPS_Game') root.geometry('1301x744+65+24') #cpsGame_support.set_Tk_var() currGuiState = cpsGame_supportGTS.guiState() w = CPS_Game(currGuiState, root) cpsGame_supportGTS.init(root, w) try: img = PhotoImage(file='../robot_icon.gif') root.tk.call('wm', 'iconphoto', root._w, img) except: # catch *all* exceptions print "Failed to display icon" root.mainloop()