tkinter + interrupts

Ajay abra9823 at mail.usyd.edu.au
Wed Sep 15 10:16:07 CEST 2004


hi!

on my gui, i have a "start server" button and a "stop server" button.
the problem is "start server" will loop infinitely and respond to requests.
i'd like to be able to click on "stop server" and get the server to stop.

how would i go about doing it? i can think of a soln involving threads,
where i have "start server" in a separate thread and have it continously
poll a shared variable. but is there another solution not involving
threads.

thanks

cheers





----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.



More information about the Python-list mailing list