transport_data.cli.interactive.DSDAddDimension

class transport_data.cli.interactive.DSDAddDimension(app)[source]

Bases: ComponentListEdit

__init__(app)

Create and display the view.

Subclasses may override this method, but must call super().__init__(app).

Methods

__init__(app)

Create and display the view.

accept(text)

Handle user input.

Attributes

default

Default input.

text

app

Reference to the Editor.

current

Reference to the EditorState.

prompt

Prompt text to be displayed in the input text area.

accept(text)

Handle user input.

Subclasses must implement this method. An implementation may return a View subclass (not instance) to indicate the next View to be displayed; if it returns None, then NEXT_VIEW is used to identify the next View.

app: Editor

Reference to the Editor.

current: EditorState

Reference to the EditorState.

default: str = ''

Default input.

prompt: str

Prompt text to be displayed in the input text area.

property text