transport_data.cli.interactive.ItemSchemeEdit¶
- class transport_data.cli.interactive.ItemSchemeEdit(app)[source]¶
Bases:
ViewEdit a
ItemScheme.- __init__(app)¶
Create and display the view.
Subclasses may override this method, but must call
super().__init__(app).
Methods
Attributes
Default input.
Prompt text to be displayed in the input text area.
Reference to the Editor.
Reference to the EditorState.
- accept(text)¶
Handle user input.
Subclasses must implement this method. An implementation may return a
Viewsubclass (not instance) to indicate the next View to be displayed; if it returnsNone, thenNEXT_VIEWis used to identify the next View.
- current: EditorState¶
Reference to the EditorState.
- prompt: str = 'Enter a number to edit; [n]ew item; or [enter] to stop:'¶
Prompt text to be displayed in the input text area.
- property text¶