From 3135e8ba958295a87412ff3cc43346b711334dc4 Mon Sep 17 00:00:00 2001 From: Aditya Kaushik Date: Tue, 1 Nov 2016 13:07:51 +0530 Subject: [PATCH] Update ClientGUI_github.py Additions Required. --- ClientGUI_github.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ClientGUI_github.py b/ClientGUI_github.py index 00bd9bc..179fbb2 100644 --- a/ClientGUI_github.py +++ b/ClientGUI_github.py @@ -11,7 +11,7 @@ # create a socket object s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) # get local machine name -host = "192.168.1.100" +host = '' port = 9999 # connection to hostname on the port. s.connect((host, port)) @@ -82,7 +82,8 @@ def Receive(): AppStart.myWindow.usertext.EndUnderline() AppStart.myWindow.usertext.WriteText(" ") AppStart.myWindow.usertext.WriteText(p.decode('ascii')) - #s.close() + +"""Needs to handle disconnection from the host, Recieve to be modified accordingly""" thread.start_new_thread(Receive,()) AppStart.MainLoop()