Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

ANN: easygconf 0.02

0 views
Skip to first unread message

Florian Diesch

unread,
Nov 16, 2009, 7:23:11 AM11/16/09
to python-ann...@python.org

I'm happy to announce easygconf 0.02.
Get it at http://www.florian-diesch.de/software/easygconf


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_listner('test', callback)
try:
gtk.main()
except KeyboardInterrupt:
pass
gc.unset('test')


Florian
--
<http://www.florian-diesch.de/>

0 new messages