All pastes #1492791 Raw Edit

Something

public text v1 · immutable
#1492791 ·published 2009-07-12 15:20 UTC
rendered paste body
import dbus
import gobject

from dbus.mainloop.glib import DBusGMainLoop
DBusGMainLoop(set_as_default=True)

bus = dbus.SystemBus()

usage_obj = bus.get_object('org.freesmartphone.ousaged', '/org/freesmartphone/Usage')
usage_iface = dbus.Interface(usage_obj, 'org.freesmartphone.Usage')

print(usage_obj.ListResources())
usage_obj.RequestResource("GSM")