Python / C++ application D-Bus usage issues
Thiago Macieira
thiago at kde.org
Sun Dec 16 18:42:40 PST 2012
On domingo, 16 de dezembro de 2012 17.33.37, Kip Warner wrote:
> Hey Thiago. I think that's probably what I need to do, but I don't know
> how to emit a signal from the Python side without creating a proxy
> object. The documentation for dbus I am finding fairly convoluted and
> relevant example code difficult to find.
Sorry, but you have to understand that the question does not make sense.
A proxy object is, by definition, proxying for an object that exists in a
remote application. You use a proxy object to place calls to this remote
object and to connect to signals emitted from that remote object.
Emitting a signal from your own application -- by definition again -- are
emitted from a *local* object. It does not make sense to have a proxy object
in order to emit signals. In most bindings, trying to place calls to the local
application (including the creation of a proxy object for a local object)
cause a deadlock and the 25-second timeout.
Now, I don't know the Python API, so I cannot advise you how to accomplish
that goal. But I can tell you that a solution must exist.
--
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
Software Architect - Intel Open Source Technology Center
PGP/GPG: 0x6EF45358; fingerprint:
E067 918B B660 DBD1 105C 966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.freedesktop.org/archives/dbus/attachments/20121216/13895d17/attachment.pgp>
More information about the dbus
mailing list