Hi,

This is probably not a bug, just somthing I can't seem to work around.
Anyway, from what I understood doing the following:
        bonobo.Listener (listener_cb)

connects listenet_cb to the 'event-notify' signal.

using bonobo.Listener.__doc__, I see that this is the declararion of the
event notify:
        event-notify (gchararray, BonoboCorbaAny, BonoboCorbaException)

So, I have listener_cb declared as"
        def listener_cb (listener, eventname, args, ev):
                somthing = args.value ()

Now, because I couldn't find any reference to BonoboCorbaAny I assumed
it was refering to CORBA.Any. Now CORBA.Any has a value() function.

Now when I run the bonobo object I get the following error:
Traceback (most recent call last):
  File "./batchrename.py", line 13, in listener_cb
    somthing = args.value ()
AttributeError: 'gobject.GBoxed' object has no attribute 'value'


So, do I need to convert the gobject.GBoxed somehow to a CORBA.Any
somehow? Or am I missing somthing completly here?

Thank you
-Daniel

_______________________________________________
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

Reply via email to