2.1.1.2.1. pyfx.view.common.popup.PopUpLauncher

class PopUpLauncher(original_widget)

Re-implementation of urwid.PopUpLauncher to add support for passing parameter when create/open pop-ups.

This helps to create different pop-ups with changing information. This reimplementation also pass size when rendering, which helps to dynamically decide the position of the popups.

Methods

__init__(original_widget)

close_pop_up(*args, **kwargs)

create_pop_up(*args, **kwargs)

Subclass must override this method and return a widget to be used for the pop-up.

open_pop_up(*args, **kwargs)

render(size[, focus])

Attributes

base_widget

Return the widget without decorations.

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

keypress

mouse_event

move_cursor_to_coords

original_widget

pack

pop_up_widget

rows

selectable

sizing

no_cache

create_pop_up(*args, **kwargs)

Subclass must override this method and return a widget to be used for the pop-up. This method is called once each time the pop-up is opened.