Rodrigo Girão Serrão
|
855c90d4f0
|
Extend @on decorator to filter matchable attributes (#2498)
* Add tests for #2484.
* Implement @on extension.
[skip ci]
Related issues: #2484.
* Changelog.
* Add missing @on test.
* Remove debug prints.
* Document changes.
* Update tests.
Test now fully works, as of #2490.
* Cache parsed selectors.
* Streamline exit condition.
* Fix typing.
* More succint wording.
* Document 'on' kwargs.
* Update src/textual/_on.py
Co-authored-by: Will McGugan <willmcgugan@gmail.com>
* Update docs/guide/events.md
Co-authored-by: Will McGugan <willmcgugan@gmail.com>
* Change 'on' API.
* Remove example code.
* Address feedback.
* Update src/textual/_on.py
Co-authored-by: Will McGugan <willmcgugan@gmail.com>
* Address review feedback.
* Fix #2499.
* don't require control to be manually specified
* update docstring
* deleted words
---------
Co-authored-by: Will McGugan <willmcgugan@gmail.com>
|
2023-05-08 17:30:07 +01:00 |
|