writing a chat program

David LeBlanc whisper at oz.net
Wed Jun 5 05:35:31 EDT 2002


If you want control of the console layout, you might care to have a look at
PySlang and sLang, which are curserish. Should be possible to split the
console into two sub-windows for sending/receiving.

David LeBlanc
Seattle, WA USA

> -----Original Message-----
> From: python-list-admin at python.org
> [mailto:python-list-admin at python.org]On Behalf Of Shaun Whelden
> Sent: Tuesday, June 04, 2002 9:41
> To: python-list at python.org
> Subject: writing a chat program
>
>
> Hi all,
> I'm trying to throw together a simple text-based chat program in
> Python.  Here's the problem I have right now: I need a way to allow
> the user to be entering in a message they want to send, while at the
> same time waiting for any data that may come through the socket.  If
> data does come through the socket, I need the user to be able to
> continue typing while the data is printed to the screen.
>
> I'm writing this on a Windows machine, so curses is out of the
> question.  Also, I want this to be a text based program, so I don't
> want to have to mess around with Tkinter or any other forms of GUI
> unless I have to.  I'm pretty sure that I need to do something
> involving thread.py and/or threading.py, but I've never used a thread
> before in my life.  Can anyone help?
>
> Shaun Whelden
> shaunw at liberateschool.com
> --
> http://mail.python.org/mailman/listinfo/python-list






More information about the Python-list mailing list