[pygtk] pygtk and xmlrpc

Adam Tauno Williams awilliam at whitemice.org
Wed Jun 1 18:36:57 WST 2011


On Wed, 2011-06-01 at 19:22 +1000, Kim Adil wrote:

> I have a pygtk app working well, now I want to feed it data using
> xmlrpc. Is there any guidance available how to use both technologies
> together? I think the gtk main loop runs waiting for user input, and
> the python SimpleXMLRPCServer has it's own loop, but how to get them
> to cooperate. Any assistance would be appreciated.

Is your app a consumer or a provider?  SimpleXMLRPCServer is for
providers [exposing an API, not consuming (calling out to) an API].

I really recommend using a thread to handle RPC.




More information about the pygtk mailing list