class_docstr: Base class for all user interface controls.
class_docstr_tok: ["Base","class","for","all","user","interface","controls","."]
docstr: Return ``True`` when this user control has the focus.
  
  If so, the cursor will be displayed according to the cursor position
  reported by :meth:`.UIControl.create_content`. If the created content
  has the property ``show_cursor=False``, the cursor will be hidden from
  the output.
docstr_tok: ["Return","``","True","``","when","this","user","control","has","the","focus",".","If","so",",","the","cursor","will","be","displayed","according","to","the","cursor","position","reported","by",":","meth",":","`",".UIControl.create_content","`",".","If","the","created","content","has","the","property","``","show_cursor=False","``",",","the","cursor","will","be","hidden","from","the","output","."]
code: def has_focus(self, cli):
      """
      Return ``True`` when this user control has the focus.
  
      If so, the cursor will be displayed according to the cursor position
      reported by :meth:`.UIControl.create_content`. If the created content
      has the property ``show_cursor=False``, the cursor will be hidden from
      the output.
      """
      return False
  
imports: from __future__ import unicode_literals
  from abc import ABCMeta, abstractmethod
  from collections import namedtuple
  from six import with_metaclass
  from six.moves import range
  from prompt_toolkit.cache import SimpleCache
  from prompt_toolkit.enums import DEFAULT_BUFFER, SEARCH_BUFFER
  from prompt_toolkit.filters import to_cli_filter
  from prompt_toolkit.mouse_events import MouseEventType
  from prompt_toolkit.search_state import SearchState
  from prompt_toolkit.selection import SelectionType
  from prompt_toolkit.token import Token
  from prompt_toolkit.utils import get_cwidth
  from .lexers import Lexer, SimpleLexer
  from .processors import Processor
  from .screen import Char, Point
  from .utils import token_list_width, split_lines, token_list_to_text
  import six
  import time
label_desc: Use image node_id 4 for calling the UIControl obj's underlying member method code with example usage: obj.has_focus(cli) and returns: False