PDA

View Full Version : Dbus Python


flyinghigh
07-23-2007, 06:18 PM
Hi,

I am looking at writing an app in pygtk, the app will read data over usb and do some number crunching and write to screen.

I don't want to write it in C, hence planning on pygtk.

To get the data in I am thinking of making a 2 piece app, the display part a state machine that simply waits for messages and writes to screen, and a backend part that handles the usb connection, stores the data in sqlite, and uses dbus to send the data to the front end part.

I am having a real struggle finding any useful examples of IPC using Dbus Python

Pedro

ArnimS
07-23-2007, 09:38 PM
Hi,

I am having a real struggle finding any useful examples of IPC using Dbus Python

Pedro

Examples of:

conic_monitor.py
test_automatic_events.py
test_connect.py
test_disconnect.py
test_iap.py
test_proxies.py
test_statistics.py
test_two_objects.py


are here:
https://garage.maemo.org/svn/pymaemo/packages/python-conic/trunk/tests/

Introductory reading:
http://en.wikipedia.org/wiki/D-Bus
http://dbus.freedesktop.org/doc/dbus-tutorial.html
http://www.ibm.com/developerworks/linux/library/l-dbus.html
http://freshmeat.net/projects/python-ipc/

flyinghigh
07-26-2007, 09:49 AM
Thanks for that, however not exactly a "How To" more an Ikea flat pack without instructions.

So I am still looking for more stuff on Dbus Python for beginners