Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move the input dialogs over to the newer Screen result approach #23

Merged
merged 7 commits into from
May 2, 2023

Conversation

davep
Copy link
Contributor

@davep davep commented May 2, 2023

As outlined in #9, since starting this, and indeed somewhat motivated by the work in here, Textual now has a method of returning results from a screen (best used with ModalScreen, although not exclusive to it). Now that this approach is stable in Textual this is a set of changes to move Frogmouth's dialogs over to result-returning rather than message-sending.

@davep davep added the enhancement New feature or request label May 2, 2023
@davep davep self-assigned this May 2, 2023
davep added 4 commits May 2, 2023 21:24
Now that I'm moved over to the dismiss/result approach for modal screens, I
don't really need to track an ID any more; the code that sets up the
callback should be pointing to the correct callback.

This means that InputDialog can be simply typed as str.
Not needed now that I've simplified the return value of InputDialog.
This removes the need for a "requester" to be passed, and also removes
anything to do with ID and cargo that was still left over.
@davep davep marked this pull request as ready for review May 2, 2023 20:42
@davep davep merged commit 0c391a4 into main May 2, 2023
@davep davep deleted the new-dismiss-method branch May 2, 2023 20:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Move the input dialogs over to the new typed/dismiss screen approach in Textual
1 participant