event loops and Python?

Donn Cave donn at oz.net
Sun Mar 12 07:08:34 CET 2000


Quoth kragen at dnaco.net (Kragen Sitaker):
[re dispatching via Tk]
| Sorry, I meant, "This is bad if you're not running in a graphical
| environment."  I want to build an event-driven tty application.
|
| I guess I should start looking at how Tkinter does it :)

An application whose events are I/O, like X applications, can use
select().  (On UNIX, anyway - platforms that tack on the Berkeley
socket API but don't get the file descriptor concept are likely
to support select() only on sockets.)  Hope that helps, I missed
the original post.

	Donn Cave, donn at oz.net



More information about the Python-list mailing list