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
# Could combine optVars to help remember the screen pos of the last
known pos
# We have to override the closeEvent to save the optVar tho.
if not pCore.optionVar.has_key("RigDebugTools_GuiPosition"):
pCore.optionVar["RigDebugTools_GuiPosition"] =
(self.pos().x(),self.pos().y())
else:
try:
Pos =
QtCore.QPoint(pCore.optionVar["RigDebugTools_GuiPosition"]
[0],pCore.optionVar["RigDebugTools_GuiPosition"][1])
self.move(Pos)
except:
pass
--
http://groups.google.com/group/python_inside_maya