code: def focusOutEvent(self, event):
          
          widget = self.widget
          type(widget).focusOutEvent(widget, event)
          self.declaration.focus_lost()
docs: The default 'focusOutEvent' implementation.