Integrating a GUI with an asyncore-based server

G

Giampaolo Rodola'

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?
 
M

Michele Simionato

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,982
Messages
2,570,185
Members
46,736
Latest member
AdolphBig6

Latest Threads

Top