corpus

Browser tool for iterable corpora.

browse_data(reader, formatter, skip_invalid=False)[source]
class CorpusState(corpus)[source]

Bases: object

Keep track of which document we’re on.

next_document()[source]
skip(n)[source]
class InputDialog(text, input_edit)[source]

Bases: urwid.widget.WidgetWrap

A dialog that appears with an input

signals = ['close', 'cancel']
keypress(size, k)[source]
class MessageDialog(text, default=None)[source]

Bases: urwid.widget.WidgetWrap

A dialog that appears with a message

class InputPopupLauncher(original_widget, text, input_edit, callback=None)[source]

Bases: urwid.wimp.PopUpLauncher

create_pop_up()[source]

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.

get_pop_up_parameters()[source]

Subclass must override this method and have it return a dict, eg:

{‘left’:0, ‘top’:1, ‘overlay_width’:30, ‘overlay_height’:4}

This method is called each time this widget is rendered.

skip_popup_launcher(original_widget, text, default=None, callback=None)[source]
save_popup_launcher(original_widget, text, default=None, callback=None)[source]
class MessagePopupLauncher(original_widget, text)[source]

Bases: urwid.wimp.PopUpLauncher

create_pop_up()[source]

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.

get_pop_up_parameters()[source]

Subclass must override this method and have it return a dict, eg:

{‘left’:0, ‘top’:1, ‘overlay_width’:30, ‘overlay_height’:4}

This method is called each time this widget is rendered.