How do I use python wx:Config to access the Windows registry?
Posted
by
GreenAsJade
on Stack Overflow
See other posts from Stack Overflow
or by GreenAsJade
Published on 2010-12-28T08:32:32Z
Indexed on
2010/12/30
15:54 UTC
Read the original article
Hit count: 174
I've read http://wxpython.org/docs/api/wx.ConfigBase-class.html
I've done some basic things like the appended. What I can see is that Config.Create() returns me some sort of configuration object, which has information about python in it. But clearly that's not what I'm looking for: I seem to be missing the magic to say "give me a Config that is the Windows Registry"...
Thanks!
GaJ
>>> import wx >>> from wx import Config >>> app=wx.App(False) >>> config=Config.Create() >>> config.HasGroup("HKEY_CURRENT_USER") False >>> config.GetFirstEntry() (0, u'', -1) >>> config.GetFirstGroup() (1, u'PythonCore', 1) >>> config.GetNextGroup(1) (0, u'', -1) >>> config.GetNumberOfGroups() 1 >>> config.GetPath() u'' >>> config.HasEntry("PythonCore") False >>> config.GetFirstGroup() (1, u'PythonCore', 1)
© Stack Overflow or respective owner