OK, So my first Python script is still underway, Once a computer connects to the first script, we can then start sending text between them using a nice simple easygui. However after sending your specifed text once, It won't come back and ask you again.
#!/usr/bin/python import socket from easygui import * server_socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM) server_socket.bind(("0.0.0.0", 5000)) server_socket.listen(5) while 1: client_socket, address = server_socket.accept() incoming = client_socket.recv(512) print incoming button = buttonbox(msg='',choices=('Send','Button'),root=None) if ( button== 'Send'): data = enterbox(msg="Enter Text To Send") if ( button== 'Button'): print "Not ready yet"
It works once but then won't go back to the two button dialog again. How come?