'Set the link\'s dynamic enabled state.
If the link is `dynamic` it will be rendered in red/green color
respectively depending on the state of the dynamic enabled state.'

def setDynamicEnabled(self, enabled):

    if (self.__dynamicEnabled != enabled):
        self.__dynamicEnabled = enabled
        if self.__dynamic:
            self.__updatePen()
