[Twisted-Python] wxpython and xmlrpc via twisted

Ian Jones ian at ambientdivide.com
Wed Dec 10 11:55:36 EST 2008

didn't subclass both of them rather.

On Wed, Dec 10, 2008 at 8:54 AM, Ian Jones <ian at ambientdivide.com> wrote:
> "There's probably no good reason to subclass both of these"
> I'm relatively new to python so sorry if this should be obvious - but
> how else would I get the functionality of both classes if I did
> subclass both of them?
> Ian
> On Tue, Dec 9, 2008 at 4:08 PM, Jean-Paul Calderone <exarkun at divmod.com> wrote:
>> On Tue, 9 Dec 2008 15:27:00 -0800, Ian Jones <ian at ambientdivide.com> wrote:
>>> I'm trying to create a taskbar app (in wxpython) to monitor job
>>> progress on a render farm. I'd like the taskbar app to have an xmlrpc
>>> server built in so that other applications can inform the taskbar app
>>> additional jobs to monitor.
>>> I found this recipe online which is a great example of the functionality I
>>> want:
>>> http://code.activestate.com/recipes/298985/
>>> However when I run the following
>>> [snip]
>>> I'm assuming this is just a good example that is out of date. However
>>> I'm not sure how to update it so that it works. Can someone help me
>>> out?
>> It looks like the direct cause of the problem is that the XMLRPC subclass
>> in the example prevents XMLRPC.__init__ from being invoked.  It seems to
>> be doing this by subclassing both wx.App and XMLRPC.  There's probably
>> no good reason to subclass both of these, and in this case it's causing a
>> problem, as presumably wx.App has an __init__ which is getting in the way.
>> Jean-Paul
>> _______________________________________________
>> Twisted-Python mailing list
>> Twisted-Python at twistedmatrix.com
>> http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python

More information about the Twisted-Python mailing list