Skip to content

Add PromptDialog #2896

@hyuri

Description

@hyuri

What is the problem or limitation you are having?

Toga offers dialogs of a few different types, including an InfoDialog, QuestionDialog, ConfirmDialog, ErrorDialog and more.

But it does not offer a dialog that captures arbitrary user input, like a number or text.

Describe the solution you'd like

Add a new dialog type, PromptDialog, that takes a specific type — like integer, float or string — and captures user input of that type.

Example:
image

The example above shows a custom dialog I made using Window, for my custom debugging toolset. But it would probably be better to have Cancel and Ok buttons like other dialogs.

Describe alternatives you've considered

None

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew features, or improvements to existing features.not quite rightThe idea or PR has been reviewed, but more work is needed.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions