Python bindings question
John (J5) Palmieri
johnp at redhat.com
Tue Oct 4 11:14:04 PDT 2005
On Tue, 2005-10-04 at 18:26 +0200, Julien PUYDT wrote:
> I'm working at undusting the gnomemeeting dbus component ; for now
> trying to make it operate as previously (last year...), before I make
> them better.
> To make developping easier, I use the dbus python bindings with two
> scripts :
> - gm_remote.py, which gives a remote for controlling gnomemeeting
> through dbus (gtk interface) ;
> - pseudo_gm.py, which acts as if it were gnomemeeting through dbus (and
> makes it possible to test the previous more conveniently).
> I'm facing a little problem with the ConnectTo dbus-method call :
> - the one implemented in gnomemeeting does _not_ reply ;
> - the one implemented by pseudo_gm seems to reply something ;
> - I can verify it since the remote freezes when gnomemeeting is the
> other end, but not when it is pseudo_gm.
> How can I make the python script not wait for a reply ?
proxy.MethodCall(..., reply_handler=on_reply, error_handler=on_error)
where the reply_handler is a function or method with the same number of
parameters that the MethodCall returns and the error_handler is a
function or method which takes an exception as a parameter. It is all
in the tutorial at http://dbus.freedesktop.org/doc/dbus-tutorial.html.
> Snark on #gnomemeeting
> dbus mailing list
> dbus at lists.freedesktop.org
More information about the dbus