'Multiply this object\'s transform by *tr*.
If local is True, then *tr* is multiplied on the right of the current transform::
newTransform = transform * tr
If local is False, then *tr* is instead multiplied on the left::
newTransform = tr * transform'

def applyTransform(self, tr, local):

    if local:
        self.setTransform((self.transform() * tr))
    else:
        self.setTransform((tr * self.transform()))
