On Feb 4, 2010, at 9:55 AM, Chris G wrote:

On Thu, Feb 4, 2010 at 12:33 PM, thirstydevil <[email protected] > wrote:
Lovin pymel for wrapping optVars into a dict.  Wondering if pymel
could wrap the window prefs in the same way?

currently I'm doing this, it's the wrong place to be storing the
data.  Qt's native way is over kill for this smallish gui.  What do
you recon?


You could try the ConfigParser module.  It's simple and effective.

along these lines, also check out iniparse: http://code.google.com/p/iniparse/ it has an implementation that is backward compatbile with ConfigParser but it's better at reading in an existing config, making changes, then writing it back out, preserving most formatting.

-chad




--
http://groups.google.com/group/python_inside_maya

Reply via email to