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?

# 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

-Dave

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

Reply via email to