Part of pida.utils.rat.gwp View In Hierarchy
The GConfValue represents the GConf key's data. You define a certain schema (or type of data) and GConfValue keeps track of its integrity. It adds the possibility to define a default value to be used when the key is inexistent or contains an invalid data type. You can also define callbacks that notify you when the key is altered. Taken from U{GAW Introduction <http://s1x.homelinux.net/documents/gaw_intro>}:: import gwp, gconf, gtk gconf.client_get_default().add_dir("/apps/gwp", gconf.CLIENT_PRELOAD_NONE) key_str = gwp.GConfValue( key = "/apps/gwp/key_str", data_spec = gwp.Spec.STRING ) def on_changed(*args): global key_str print key_str.key, "=", key_str.data gtk.main_quit() tmp.set_callback(on_changed) tmp.data = "Hello world" gtk.main()
Line # | Kind | Name | Docs |
---|---|---|---|
105 | Method | __init__ | Undocumented |
120 | Method | get_data_spec | Undocumented |
123 | Method | set_data_spec | Undocumented |
132 | Method | get_data | Undocumented |
142 | Method | set_data | Undocumented |
153 | Method | get_default | Undocumented |
156 | Method | set_default | Undocumented |
163 | Method | get_is_writable | Undocumented |
170 | Method | set_callback | Undocumented |
186 | Method | _on_changed | Undocumented |
189 | Method | __del__ | Undocumented |
192 | Method | reset_default | Resets the default value to the one present in the Spec |