What is easygconf?¶
easygconf provids an easy, pythonic way to access GConf through a dict-like interface.
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')
easygconf is alpha software. So far it seems to work for me but it may have severe bugs I didn’t noticed yet. Use it at your own risk.
easygconf is still under development and the API may change in the future.
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the (error in elisp evaluation: Symbol’s value as variable is void: GNU)_ for more details.