Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

compose method and yields #3696

Closed
stefanoborini opened this issue Nov 17, 2023 · 0 comments
Closed

compose method and yields #3696

stefanoborini opened this issue Nov 17, 2023 · 0 comments

Comments

@stefanoborini
Copy link

stefanoborini commented Nov 17, 2023

I am evaluating textual for a project I need to implement at work.

I have a very lightweight understanding of it, but something that just rubs the wrong way from the design point of view is the compose() method and the large need to write the layout of the view as a set of yield/with statements, rather than a widget tree.

Is there any actual advantage to this approach, and is there a way to define the view in a way that does not require yield/with logic for each little component of the view?

@Textualize Textualize deleted a comment from github-actions bot Nov 17, 2023
@Textualize Textualize locked and limited conversation to collaborators Nov 17, 2023
@davep davep converted this issue into discussion #3698 Nov 17, 2023

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant