'Enable/disable hint-mode when focus changes'

def eventFilter(self, obj, event):

    etype = event.type()
    if (etype == QtCore.QEvent.FocusIn):
        self.focus_in()
    elif (etype == QtCore.QEvent.FocusOut):
        self.focus_out()
    return False
