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_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

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.