code: def focus(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()
docs: Call this to give this Widget the input focus.