Concurrency models (was: Timer)

Michael Hudson mwh at python.net
Tue Oct 28 10:13:32 EST 2003


Alex Martelli <aleax at aleax.it> writes:

> In short, I doubt using Tkinter just for the sake of
> getting .after makes much sense -- you're probably at
> least as well off with the much lighter-weight scheduler
> module, in that case.  (OTOH, if it IS possible to
> give fileobjects to Tkinter to cause callbacks when
> they're ready, as it is in Tcl/Tk, then using Tkinter
> w/o GUI may indeed be easier than merging e.g scheduler
> and select -- it depends... but last time I checked I
> saw no way to get the "callback on file activity" from
> Tkinter as I could back when I used Tcl/Tk...).

Huh?  _tkinter.createfilehandler() is there (pyrepl uses it).  I think
only on Unix, but I think that also applies to Tcl_CreateFileHandler,
so that's not much of a surprise.

Cheers,
mwh

-- 
  First time I've gotten a programming job that required a drug
  test.  I was worried they were going to say "you don't have
  enough LSD in your system to do Unix programming".   -- Paul Tomblin
               -- http://home.xnet.com/~raven/Sysadmin/ASR.Quotes.html




More information about the Python-list mailing list