class_docstr: The layout for a prompt_toolkit
  :class:`~prompt_toolkit.application.Application`.
  This also keeps track of which user control is focused.
  
  :param container: The "root" container for the layout.
  :param focused_element: element to be focused initially. (Can be anything
      the `focus` function accepts.)
class_docstr_tok: ["The","layout","for","a","prompt_toolkit",":","class",":","`","~prompt_toolkit.application.Application","`",".","This","also","keeps","track","of","which","user","control","is","focused",".",":","param","container",":","The","``","root","''","container","for","the","layout",".",":","param","focused_element",":","element","to","be","focused","initially",".","(","Can","be","anything","the","`","focus","`","function","accepts",".",")"]
docstr: Set the :class:`.UIControl` to receive the focus.
docstr_tok: ["Set","the",":","class",":","`",".UIControl","`","to","receive","the","focus","."]
code: def current_control(self, control: UIControl) -> None:
      """
      Set the :class:`.UIControl` to receive the focus.
      """
      for window in self.find_all_windows():
          if window.content == control:
              self.current_window = window
              return
  
      raise ValueError("Control not found in the user interface.")
  
imports: from __future__ import annotations
  from typing import Generator, Iterable, Union
  from prompt_toolkit.buffer import Buffer
  from .containers import AnyContainer, ConditionalContainer, Container, Window, to_container
  from .controls import BufferControl, SearchBufferControl, UIControl
label_desc: Use image node_id 8 for calling the Layout obj's underlying member method code with example usage: obj.current_control(control) without return types