[Tutor] Loops

Kent Johnson kent_johnson at skillsoft.com
Wed Oct 20 18:09:09 CEST 2004

You need to use threads to allow your program to do more than one thing at 
a time. See the recent Tutor thread on Network Programming for a discussion 
of this.


At 08:33 AM 10/20/2004 -0700, Jeremiah Rushton wrote:
>I'm trying to write a program that will act like an instant messaging
>thing.  I can't get the program (socket module) to continuously
>recieve while sending whenever the user wants it to.  I wanted to know
>if I can code part of the program to stay in a while loop while the
>rest of the program is preforming other tasks.  If there is a
>different more efficient way to accomplish this than while loops,
>please tell me.  I'm thinking I might have to run two programs at the
>same time but I'm making the program in Tkinter to be more user
>friendly, and I wanted all the text recieved and sent to appear in a
>text box.  I don't know how to make two programs run in the same
>Tkinter window, if that is the best way to do it.
>Please HELP
>Tutor maillist  -  Tutor at python.org

More information about the Tutor mailing list