event loops and Python?
Kragen Sitaker
kragen at dnaco.net
Sat Mar 11 13:17:19 EST 2000
More information about the Python-list mailing list
Sat Mar 11 13:17:19 EST 2000
- Previous message (by thread): event loops and Python?
- Next message (by thread): event loops and Python?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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. :)
- Previous message (by thread): event loops and Python?
- Next message (by thread): event loops and Python?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list