2.1.1.2.1. pyfx.view.common.popup.PopUpLauncher¶
- class PopUpLauncher(original_widget)¶
Re-implementation of
urwid.PopUpLauncherto 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_widgetReturn the widget without decorations.
focusRead-only property returning the child widget in focus for container widgets.
focus_positionProperty for reading and setting the focus position for container widgets.
get_cursor_coordsget_pref_colkeypressmouse_eventmove_cursor_to_coordsoriginal_widgetpackpop_up_widgetrowsselectablesizingno_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.