I'm doing some experiments with the connectivity api and the python
dbus bindings. When running this code

import dbus
import gobject

def icd_status_changed(name, type, status):
   print name, type, status

bus = dbus.SystemBus()
icd_obj = bus.get_object('com.nokia.icd', '/com/nokia/icd')
icd = dbus.Interface(icd_obj, 'com.nokia.icd')
icd.connect_to_signal('status_changed', icd_status_changed)

print icd.get_statistics()

mainloop = gobject.MainLoop()
mainloop.run()

I correctly get the connection statistics (this means I'm correctly
connected with dbus), but I don't get any "status_changed" event when
connecting and disconnecting to the network (with dbus-monitor
--system I receive those signals...)

Am I missing anything? A python-dbus problem?

--
Fabio Forno, PhD
Istituto Superiore Mario Boella
Jabber ID: xmpp:[EMAIL PROTECTED]
** Try Jabber http://www.jabber.org
_______________________________________________
maemo-developers mailing list
maemo-developers@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers

Reply via email to