rendered paste body# start the app like this...
class udictUI(Thread):
def __init__ (self):
Thread.__init__(self)
def run(self):
daemonSocket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
daemonSocket.bind(('', 40002))
daemonSocket.listen(5)
wordResquest = ''
print 'listening...'
while (True):
print 1
client , address = daemonSocket.accept()
print 'Recieved a Connection'
wordResquest = client.recv(10000)
print wordRequest
print app.semDictionary
client.send('Under Construction')
client.close()
try:
udictUI().start()
except:
print 'Cannot start the Thread'
app = UDict()
gtk.main()