textual icon indicating copy to clipboard operation
textual copied to clipboard

result = App.run()

Open kamadorueda opened this issue 4 years ago • 4 comments

To be added by @willmcgugan

  1. Thanks for such a great library
  2. We are using your library! See the result here: https://github.com/fluidattacks/makes/pull/725
  3. This is not an outstanding feature that must be added
  4. But It would be very useful in some cases

The App class is normally used as a whole application: App.run()

It would be useful if we could return data from it on exit so we can do result = App.run(). This allows for having many 'scenes' (Apps) in our application, for instance for asking user for a value and then do some work, then show other 'scene' (other App), etc

kamadorueda avatar Oct 11 '21 21:10 kamadorueda

Makes sense. That will make it in to the next version.

willmcgugan avatar Oct 15 '21 14:10 willmcgugan

Your app looks great BTW

willmcgugan avatar Oct 15 '21 14:10 willmcgugan

@willmcgugan is there any update on this? would be great to be able to switch between multiple screens

styk-tv avatar Feb 24 '22 10:02 styk-tv

We're working on a large feature branch ATM. The code in main is somewhat frozen in terms of features. If you need this I'd suggest forking it for now. Happy to consider a PR.

willmcgugan avatar Feb 24 '22 10:02 willmcgugan

https://github.com/Textualize/textual/wiki/Sorry-we-closed-your-issue

willmcgugan avatar Oct 25 '22 09:10 willmcgugan

Did we solve your problem?

Consider buying the Textualize developers a coffee to say thanks.

Textualize

github-actions[bot] avatar Oct 25 '22 09:10 github-actions[bot]