import gconf
client = gconf.client_get_default()
gconf_root_key = applet.get_preferences_key()
client.set_string(gconf_root_key + '/myvar', 'foobar')
myvar = client.get_string(gconf_root_key + '/myvar')
How should a Gnome applet store its configuration data?