View Single Post
Posts: 277 | Thanked: 319 times | Joined on Jan 2010
#1109
I'm actually using the simple-client but you can use this script to get the attributes for everything with "APPLICATION":"clock"

EDIT: Made it print out more nicely

Code:
#!/usr/bin/python

import dbus

bus = dbus.SystemBus()

time_obj = bus.get_object('com.nokia.time', '/com/nokia/time')
time_intf = dbus.Interface(time_obj, 'com.nokia.time')

cookies = time_intf.get_cookies_by_attributes({'APPLICATION': 'clock'})

for cookie in cookies:
        attributes = time_intf.query_attributes(cookie)
        print cookie
        for key,value in attributes.items():
                print '   '+key,value

Last edited by slarti; 2013-02-18 at 18:24.
 

The Following User Says Thank You to slarti For This Useful Post: