euporie.core.widgets.file_browser.UIContent

class euporie.core.widgets.file_browser.UIContent(get_line: Callable[[int], StyleAndTextTuples] = <function UIContent.<lambda>>, line_count: int = 0, cursor_position: Point | None = None, menu_position: Point | None = None, show_cursor: bool = True)

Content generated by a user control. This content consists of a list of lines.

Parameters:
  • get_line – Callable that takes a line number and returns the current line. This is a list of (style_str, text) tuples.

  • line_count – The number of lines.

  • cursor_position – a Point for the cursor position.

  • menu_position – a Point for the menu position.

  • show_cursor – Make the cursor visible.