2.1.2.2.1. pyfx.view.components.autocomplete_popup.AutoCompletePopUp

class AutoCompletePopUp(mediator, keymapper, prefix, options, is_partial_complete)

Auto-complete popups for autocomplete suggestions of query input.

Methods

__init__(mediator, keymapper, prefix, ...)

keypress(size, key)

pack(size[, focus])

Compute the minimum (col, row) size needed for rendering the options.

render(size[, focus])

Attributes

MAX_HEIGHT

base_widget

Read-only property that steps through decoration widgets and returns the one at the base.

focus

Read-only property returning the child widget in focus for container widgets.

focus_position

Property for reading and setting the focus position for container widgets.

get_cursor_coords

get_pref_col

mouse_event

move_cursor_to_coords

rows

selectable

sizing

pack(size, focus=False)

Compute the minimum (col, row) size needed for rendering the options.

Parameters:
  • size ((int, int)) – the size of the pop up launcher

  • focus (bool) – focus on the popup or not

Returns:

(min_col, min_row) of the pop up