transport_data.cli.interactive.NA_Name¶
- class transport_data.cli.interactive.NA_Name(app)[source]¶
Bases:
ViewNameableArtefact.name.- __init__(app) None¶
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 its name or [enter] to skip:'¶
Prompt text to be displayed in the input text area.
- property text¶