event loops and Python?
Kragen Sitaker
kragen at dnaco.net
Sat Mar 11 13:17:19 EST 2000
In article <G7vy4.326$Mn5.178283008 at newsa.telia.net>,
Fredrik Lundh <effbot at telia.com> wrote:
>Kragen Sitaker <kragen at dnaco.net> wrote:
>> I know Tkinter-driven Python programs run from an event loop, but I
>> don't know what the interface to it is.
>
>just call mainloop(), and off you go.
Looks like that calls a mainloop() method on a Tk toplevel. This is
bad if you're not running in X.
>you can use after() and after_idle() to schedule
>background tasks. for more info, skip over to:
>
>http://www.pythonware.com/library/tkinter/introduction/basic-widget-methods.
>htm
>
>and read the subchapters on "event processing" and "alarm
>handlers and other non-event callbacks".
Thanks for the info. :(
--
<kragen at pobox.com> Kragen Sitaker <http://www.pobox.com/~kragen/>
The Internet stock bubble didn't burst on 1999-11-08. Hurrah!
<URL:http://www.pobox.com/~kragen/bubble.html>
The power didn't go out on 2000-01-01 either. :)
More information about the Python-list
mailing list