code: def focusInEvent(self, event):
          
          super(XLineEdit, self).focusInEvent(event)
          
          self._focusedIn = True
docs: Updates the focus in state for this edit.
          
          :param      event | <QFocusEvent>