def _set_anchor(self, value):
        """
        Subclasses may override this method.
        """
        pX, pY = self.anchor
        x, y = value
        dX = x - pX
        dY = y - pY
        self.moveBy((dX, dY))
def _set_anchor ( self , value ) : pX , pY = self . anchor x , y = value dX = x - pX dY = y - pY self . moveBy ( ( dX , dY ) )
Subclasses may override this method.