event loops and Python?
Kragen Sitaker
kragen at dnaco.net
Sat Mar 11 22:54:05 EST 2000
In article <oLyy4.303$Lh9.188194816 at newsb.telia.net>,
Fredrik Lundh <effbot at telia.com> wrote:
>Kragen Sitaker <kragen at dnaco.net> wrote:
>> >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.
>
>sorry, failed to parse that. Tkinter uses X windows on Unix,
>native toolkits on Mac and Windows. the event loop works
>in the same way on all platforms. what's the problem here?
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 :)
--
<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