def lose_focus(self):
        """Focus loop holder.

        That is, restore control of the application loop
        back to the loop holder.
        """
        ### restore default behaviours for update and
        ### drawing operations

        self.draw = super().draw
        self.update = empty_function

        ### disable text editing events
        stop_text_input()

        ### switch to the stored loop holder (if
        ### None, the default loop holder used is
        ### the WindowManager instance from the module
        ### winman.main)
        raise SwitchLoopException(self.loop_holder)
Focus loop holder.

        That is, restore control of the application loop
        back to the loop holder.
        
nodezator/widget/stringentry.py