serial port and event loop question

David Fisher python at
Tue Apr 25 06:32:09 EDT 2000

----- Original Message -----
From: <bgue at>
Newsgroups: comp.lang.python
To: <python-list at>
Sent: Thursday, April 20, 2000 9:24 PM
Subject: serial port and event loop question

> Hi everyone. This is mostly a general programming question, but since
> I'm using Python for this project, I thought I'd ask here... I wrote
> database written with Python and Gadfly, and I've got a nice little
> Tkinter GUI for it. I need to make it monitor the serial port for
> incoming data (from a barcode scanner). I'm using the Serial module,
> but I don't know how to have my program watch for new data
> constantly...any help?

If you're talking about the win32 serial io module, you don't need to do
anything special for it to watch for new data.  It buffers the incoming data
until you read() or readTerminated() to get the data.
Good luck,

More information about the Python-list mailing list