Ejemplo n.º 1
0
def main():
    global ROOT, APP
    host.initialize(LOCALNAME, "GSN", GSNID, IP, int(PORT))
    ROOT = Tk()
    ROOT.protocol("WM_DELETE_WINDOW", close_handler)
    ROOT.geometry("320x480+300+300")
    APP = MainFrame(ROOT)
      
    ROOT.mainloop()  
Ejemplo n.º 2
0
def main():
    global ROOT, APP
    
    host.initialize(LOCALNAME, "USER", USERID, IP, int(PORT))

            
    ROOT = Tk()
    ROOT.protocol("WM_DELETE_WINDOW", close_handler)
    
    ROOT.geometry("320x480+300+300")
    APP = MainFrame(ROOT)
    
#    thread = threading.Thread(target=receiveThread, args = ())
#    thread.daemon = True
#    thread.start()
    
    ROOT.mainloop()