Add PromptDialog #2896
Labels
enhancement
New features, or improvements to existing features.
not quite right
The idea or PR has been reviewed, but more work is needed.
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:

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
andOk
buttons like other dialogs.Describe alternatives you've considered
None
Additional context
No response
The text was updated successfully, but these errors were encountered: