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()
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()