Skip to main content
Join the official Python Developers Survey 2018 and win valuable prizes: Start the survey!

dict-like API for GConf

Project description

easygconf provids an easy, pythonic way to access GConf through a dict-like interface.

Example

from easygconf import GConfDict
import gtk


key = 'test'
gc=GConfDict('/apps/easygconftest')

print "%s is %s"%(key, gc[key])
gc[key] = 'foo'
print "Now %s is %s"%(key, gc[key])


def callback (key, value, gconfdict, id, args):
    print "%s changed to %s"%(key, value)

gc.add_listener('test', callback)
try:
    gtk.main()
except KeyboardInterrupt:
    pass
gc.unset('test')

Project details


Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page