More Tkinter questions

Steven Miale (smiale@cs.indiana.edu)
Tue, 7 Jun 1994 01:01:38 -0500

I'm currently working on an application that will have a Tk interface and will
require socket I/O at the same time. For simplicity, consider it a windowed
version of the UNIX 'talk' program. The interface consists of a screen containing
what is received over the socket.

In telnet.py, socket I/O is handled via the UNIX fork command. This creates two
processes, one reading and one writing. Now I need to interface this with
Tk.

Since socket.read() waits for input, I first added yet another process using
fork. The problem: it apparently caused the creation of two separate widgets,
one of which was displayed and was using mainloop(), the other of which was
NOT being displayed and was used by the receiver process. In other words, trying
to add received text to the Text widget didn't work.

Any suggestions on how to solve this problem?

Thanks,

Steve