title: Why project freeze after first send/get?
body: <p>I have this simple server-client project. Its connect and I can get data from server but only first time. If I try to get data again it stops. Can anyone help me, whats wrong with my code?</p>
  
  <h1>This method get text from entry, send it to server and get the response. This method belongs to client class</h1>
  
  <pre><code>def getMessage(self,clSocket):
          clSocket.send(self.input.get().encode("ASCII"))
          messageFromServer=clSocket.recv(128)
          messagebox.showinfo("answer", messageFromServer)
  </code></pre>
  
  <h1>Main</h1>
  
  <pre><code>def main(): 
      serverName="localhost"
      serverPort=11000
      clientSocket=socket.socket(socket.AF_INET,socket.SOCK_STREAM)
      clientSocket.connect((serverName,serverPort))
      root = tk.Tk()
      app = client(root,clientSocket)
  
      root.mainloop()
  
  if __name__ == '__main__':
      main()
  </code></pre>