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 = cpsGameViewer_support.guiState() w = CPS_Game(currGuiState, root) cpsGameViewer_support.init(root, w) 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 = cpsGameViewer_support.guiState() w = CPS_Game (currGuiState, root) cpsGameViewer_support.init(root, w) root.mainloop()
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') cpsGameViewer_support.set_Tk_var() w_win = CPS_Game(currGuiState, w) cpsGameViewer_support.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') cpsGameViewer_support.set_Tk_var() w_win = CPS_Game (currGuiState, w) cpsGameViewer_support.init(w, w_win, param) return w_win