code: def resizeEvent(self, event):
          
  
          super(type(self), self).resizeEvent(event)
  
          self.__notifier.refresh_position()
docs: Reimplements the :meth:`*.resizeEvent` method.
  
          :param event: QEvent.
          :type event: QEvent