[英]How do I make a Gnome Panel applet (written in python) store seperate settings for each instance?
由于某种原因,我无法访问另一个问题的已接受答案中链接的页面。 但是,您可以通过PyGObject自省来访问GConf C库: from gi.repository import GConf
。 因此,他们推荐的功能(如果只有我可以加载网页以查看)可能在Python中可用。 请注意,如果您的小程序完全使用pygtk,则使用PyGObject自省可能会产生冲突(尽管我认为如果仅对GConf而不对GTK使用内省,则应该可以)。
这是通过自省的GConf的内容:
['ChangeSet',
'ChangeSetForeachFunc',
'Client',
'ClientClass',
'ClientErrorHandlerFunc',
'ClientErrorHandlingMode',
'ClientNotifyFunc',
'ClientPreloadType',
'Entry',
'EnumStringPair',
'Error',
'ListenersForeach',
'ListenersPredicate',
'UnsetFlags',
'Value',
'ValueType',
'__class__',
'__delattr__',
'__dict__',
'__dir__',
'__doc__',
'__file__',
'__format__',
'__getattr__',
'__getattribute__',
'__hash__',
'__init__',
'__loader__',
'__module__',
'__name__',
'__new__',
'__path__',
'__reduce__',
'__reduce_ex__',
'__repr__',
'__setattr__',
'__sizeof__',
'__str__',
'__subclasshook__',
'__weakref__',
'_introspection_module',
'_load',
'_namespace',
'_overrides_module',
'_version',
'concat_dir_and_key',
'debug_shutdown',
'enum_to_string',
'error_quark',
'escape_key',
'init',
'is_initialized',
'key_is_below',
'postinit',
'preinit',
'string_to_enum',
'unescape_key',
'unique_key',
'valid_key',
'value_decode']
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.