def storeWindowPosition(self):
        # ConstraintDialog has Priority on storing its position
        if a2plib.getConstraintDialogRef() is not None:
            return
        frame = QtGui.QDockWidget.frameGeometry(self)
        x = frame.x()
        y = frame.y()

        global CONSTRAINT_DIALOG_STORED_POSITION
        CONSTRAINT_DIALOG_STORED_POSITION = QtCore.QPoint(x,y)
 def IsActive(self):
     if a2plib.getConstraintEditorRef(): return False
     if a2plib.getConstraintDialogRef(): return False
     return True
 def Activated(self):
     if a2plib.getConstraintDialogRef(): return #Dialog already active...
     p = a2p_ConstraintPanel()