2.1.6.1. pyfx.view.view_frame.ViewFrame¶
- class ViewFrame(screen, buffers, mini_buffers, popups_factory, default_body, default_footer)¶
A wrapper of the frame as the main UI of Pyfx.
Note
This must be used as the top widget in
urwid.MainLoop.- `_popup_factories`
a dict of factories to create popup widgets
- `_pressed_unknown_key`
a state indicates that previously an unknown key is pressed.
Methods
__init__(screen, buffers, mini_buffers, ...)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.
keypress(size, key)open_pop_up(*args, **kwargs)render(size[, focus])size(widget_name)switch(widget_name, 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_colmouse_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.