We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
It is possible to give a widget an ID that can't then be queried back; for example:
from textual.app import App, ComposeResult from textual.widgets import Label class BadIDApp(App[None]): def compose(self) -> ComposeResult: yield Label("Hello, World!", id="foo&") def on_mount(self) -> None: self.notify(f"{self.query_one('#foo&')}") if __name__ == "__main__": BadIDApp().run()
Perhaps we should validate widget IDs when they are assigned?
The text was updated successfully, but these errors were encountered:
We do this with class names, so it would be sensible to do it for IDs as well.
Sorry, something went wrong.
Don't forget to star the repository!
Follow @textualizeio for Textual updates.
rodrigogiraoserrao
Successfully merging a pull request may close this issue.
It is possible to give a widget an ID that can't then be queried back; for example:
Perhaps we should validate widget IDs when they are assigned?
The text was updated successfully, but these errors were encountered: