Integrating a GUI with an asyncore-based server

Michele Simionato michele.simionato at gmail.com
Tue Oct 16 09:15:44 EDT 2007


On Oct 16, 2:57 pm, Giampaolo Rodola' <gne... at gmail.com> wrote:
> Hi there.
> Just for the heck of it I'd like to write a simple front-end for an
> asyncore-based server I wrote by using Tkinter.
> I wrote a simple graphical interface consisting of two buttons: "Start
> server" and "Stop server".
> The first button should start the asyncore main loop while the second
> should obviously stop it.
> Actually I can't find a valid solution for doing such a stuff since
> this is the first time I'm using a GUI toolkit.
> Which is the best approach to use in such case?
> Could someone point me in the right direction?

Twisted has Tkinter integration. If you don't want to use Twisted, you
could
run the asyncore loop in a separated thread with respect to the
Tkinter mainloop.

  Michele Simionato




More information about the Python-list mailing list