-
Notifications
You must be signed in to change notification settings - Fork 815
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
Should messages only post after user interaction? #3417
Comments
I believe all messages should be posted at all the relevant times. Messages being posted when changes occur is also the most intuitive flow, while having to distinguish between a user clicking a TUI versus changes that are 100% programmatic is much harder. Finally, distinguishing between changes that happened because of an action that a real user took on a running app versus changes that are 100% programmatic isn't that easy because all we see, and the only thing we can change, is code; so having to reason about why something started happening is an extra burden on the Textual user (the one writing apps). |
One caveat I'd make to the above, which I don't think is in opposition to anything above, more adding to it and increasing clarity: it should be 100% fine to prevent certain messages from bubbling up from compound widgets (consider how Some thought about any initial |
Sorry to bump this issue, but I think the design choice for Textual messages is important and needs some clarification. I missed #2500 from back in May when I created this issue, and there's been a number of other issues/discussions since. @willmcgugan I think your input is needed here! |
I personally feel like this is a wart we should get rid of ASAP. Regardless of what is decided, we need to go through the widgets and make sure their messages adhere to the “standard” we decide on. |
@rodrigogiraoserrao I'm confused about what your position is. What is the wart that you want to get rid of? My feeling is that we should always send messages, and use the |
The “wart” was the inconsistency because we weren't doing neither thing consistently (always post or always ignore messages initiated by the developer). |
If it's settled that we want to always post messages and then the developer can |
Don't forget to star the repository! Follow @textualizeio for Textual updates. |
Should messages only post after user interaction? Currently there's some inconsistency between widgets which is causing confusion. See discussion #3400 for context.
Also for what it's worth, I agree with Dave that those widgets are actually behaving correctly.
If some messages such as
Select.Changed
are different by design to only post after user interaction, I think this deserves a note in the docs at least.[Edited to add more detail. Sorry, somehow I clearly messed up when originally creating this issue.]
The text was updated successfully, but these errors were encountered: