'Confirm if the tour loses focus and hides the tips.'

def lost_focus(self):

    if (self.is_running and (not self.any_has_focus()) and (not self.setting_data) and (not self.hidden)):
        self.hide_tips()
