wx.Config: Recommended for use? Or use something more Pythonic?

Quick question: I wrote an application in regular old wxWidgets/C++
something over a year ago and found the wxConfig class quite useful
and easy-to-use for stashing away all the program's preferences (...in
the registry, as this was on Windows). In wxPython, is using
wx.Config seen as a "recommended" approach for the same
functionality? Or is there a regular old Python class that might be
preferable?

I ask in that the wxPython book points out that while wxWidgets has
much functionality outside of "GUI stuff," such needs are often best
served by other Python class libraries.

Thanks,
---Joel

···

--
To unsubscribe, send email to wxPython-users+unsubscribe@googlegroups.com
or visit http://groups.google.com/group/wxPython-users?hl=en

Hi Joel,

···

On Thu, Apr 22, 2010 at 12:03 PM, Joel Koltner zapwire-groups@yahoo.com wrote:

Quick question: I wrote an application in regular old wxWidgets/C++

something over a year ago and found the wxConfig class quite useful

and easy-to-use for stashing away all the program’s preferences (…in

the registry, as this was on Windows). In wxPython, is using

wx.Config seen as a “recommended” approach for the same

functionality? Or is there a regular old Python class that might be

preferable?

I ask in that the wxPython book points out that while wxWidgets has

much functionality outside of “GUI stuff,” such needs are often best

served by other Python class libraries.

Thanks,

—Joel

As I understand it, you can wx.Config IS wxConfig, so it should work the same way. I’ve never used it, so I don’t have an opinion on this method. Popular Python configuration methods are the builtin ConfigParser class and Michael Foord’s ConfigObj. I use the latter most of the time. It’s really up to you though.

Mike Driscoll

Blog: http://blog.pythonlibrary.org

To unsubscribe, send email to wxPython-users+unsubscribe@googlegroups.com

or visit http://groups.google.com/group/wxPython-users?hl=en