Beispiel #1
0
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
Beispiel #2
0
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
Beispiel #3
0
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()
Beispiel #4
0
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()