[wxPython] xmlrpc and wxPython

Hello,

I've put together a mixin class (rpcMixin) to allow wxPython applications to act as xmlrpc servers. I'm doing this because I would like to be able to drive my GUI application from other processes in a cross platform way (which rules out COM).

Because I think this might be useful, I've attached the relevant module and a simple client demo to this message. Though there isn't any standalone documentation, I commented rpcMixin.py fairly heavily (make sure to read the Notes at the top).

I'm definitely going to keep working on this, so if people think it's useful/interesting, let me know and I'll post updates.

This has been tested on my development machine (Win2K, python 1.5.2, wxPython 2.2.2), I'd love to hear about it if it works/doesn't work on other platforms.

Enjoy,
-greg

rpcMixin.py (6.95 KB)

client.py (134 Bytes)

I've put together a mixin class (rpcMixin) to allow wxPython applications
to act as xmlrpc servers.

Cool! You just saved me some work as I think I am going to have a need for
this in a few weeks.

A couple comments:

It would be nice to have more than one rpcMixin server running in a single
process. With your current code I don't think that would work because of
the globals you use, but it would probably work if these were encapsulated
somehow into the rpcMixin class. You might also look at moving the
_rcpStatus in the event object to clean things up even more.

ยทยทยท

--
Robin Dunn
Software Craftsman
robin@AllDunn.com
http://wxPython.org Java give you jitters?
http://wxPROs.com Relax with wxPython!

_______________________________________________
wxPython-users mailing list
wxPython-users@lists.sourceforge.net
http://lists.sourceforge.net/mailman/listinfo/wxpython-users