    def focus(self):
        """
        Call this to give this Widget the input focus.
        """
        logger.debug("Widget focus: %s", self)
        self._has_focus = True
        self._frame.move_to(self._x, self._y, self._h)
        if self._on_focus is not None:
            self._on_focus()
Call this to give this Widget the input focus.
asciimatics/widgets/widget.py