'Set the `has focus` state.
.. note:: The item does not have `QGraphicsItem.ItemIsFocusable` flag.
This property is instead controlled by the parent NodeItem.'

def setHasFocus(self, focus):

    self.__hasFocus = focus
    self.__updateShadowState()
