Add dbus example do docs.

Reviewer: Bruno Araújo <bruno.araujo@openbossa.org>
Reviewer: Renato Araújo <renato.araujo@openbossa.org>
This commit is contained in:
Hugo Parente Lima 2010-04-30 16:08:23 -03:00 • committed by Renato Filho
commit 59d0798159
3 changed files with 120 additions and 3 deletions

View file

@ -3,18 +3,18 @@ DBUS integration
To get PySide and DBus working toghether you can use the glib mainloop integration already done in pydbus.
The example above show how to export Qt objects to python and emit an DBus signal when a Qtsignal is emited. The code comments explains what you need to know about PySide and dbus, any doubts, see the python-dbus help.
The example above show how to export Qt objects to python and emit an DBus signal when a Qt signal is emited. The code comments explains what you need to know about PySide and dbus, any doubts, see the python-dbus help.
DBUS Client
-----------
.. literalinclude:: ../examples/dbus/example-client.py
.. literalinclude:: codesnippets/examples/dbus/example-client.py
DBUS Server
-----------
.. literalinclude:: ../examples/dbus/example-server.py
.. literalinclude:: codesnippets/examples/dbus/example-server.py
Running the example