Commit Graph

33 Commits

Author SHA1 Message Date
Will McGugan
1ea892b062 handler name in classvar (#2675)
* handler name in classvar

* fix for worker handler name

* fix custom templates, event docs

* doc tweak

* doc tweak

* restore signature
2023-05-28 14:56:18 +01:00
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
Will McGugan
e5c54a3683 blog post (#2465)
* blog posts

* fix typo

* word

* version bump

* changelog

* update words
2023-05-03 13:22:22 +01:00
Will McGugan
91a9d570a4 On decorator (#2453)
* Add on decorator

* decorator code

* docs for on decorator

* Examples

* test errors

* simplify listing

* words

* changelog

* Update docs/guide/events.md

Co-authored-by: Dave Pearson <davep@davep.org>

* Update docs/guide/events.md

Co-authored-by: Dave Pearson <davep@davep.org>

* Update docs/examples/events/on_decorator.css

Co-authored-by: Rodrigo Girão Serrão <5621605+rodrigogiraoserrao@users.noreply.github.com>

* Update docs/guide/events.md

Co-authored-by: Rodrigo Girão Serrão <5621605+rodrigogiraoserrao@users.noreply.github.com>

* rewording

* comment

* clarification

* Added note

---------

Co-authored-by: Dave Pearson <davep@davep.org>
Co-authored-by: Rodrigo Girão Serrão <5621605+rodrigogiraoserrao@users.noreply.github.com>
2023-05-02 16:17:40 +01:00
Will McGugan
373fc95fc1 Drop explicit sender attribute from messages (#1940)
* remove sender

* removed priority post

* timer fix

* test fixes

* drop async version of post_message

* extended docs

* fix no app

* Added control properties

* changelog

* changelog

* changelog

* fix for stopping timers

* changelog

* added aliases to radio and checkbox

* Drop sender from Message init

* drop time

* drop cast

* Added aliases
2023-03-06 10:52:34 +00:00
Will McGugan
0999114811 Update docs/guide/events.md
Co-authored-by: Rodrigo Girão Serrão <5621605+rodrigogiraoserrao@users.noreply.github.com>
2023-02-24 12:02:20 +00:00
Will McGugan
b2ab5b6886 docs 2023-02-23 21:36:33 +00:00
Will McGugan
2ee61f95db Docs 2023-02-23 14:37:47 +00:00
Dave Pearson
ddb2579168 Merge branch 'main' into package-docs 2023-02-08 11:40:15 +00:00
Rodrigo Girão Serrão
e5e7c08afe Update docs accordingly. 2023-02-08 10:53:51 +00:00
Dave Pearson
aece00e1dc Remove the keystrokes from the dictionary example in events guide
As well as not being necessary for the example, it also had the problem of
not actually having the input in focus (there was no press of 'tab' to kick
things off) and so the other keys didn't go into the `Input` as they were
supposed to.
2023-02-06 16:06:50 +00:00
UriyaHarpeness
ad47b9167e Fix some typos in docs. 2022-10-26 08:39:36 +03:00
Will McGugan
46208ef905 Merge branch 'css' into mount-wait 2022-10-17 09:36:15 +01:00
Will McGugan
8982d88f9e simplify compose 2022-10-15 13:07:15 +01:00
Dave Pearson
acc5e72775 Add 'a' 2022-10-14 18:46:43 +01:00
Dave Pearson
72c99e69fb it's -> its 2022-10-14 18:35:18 +01:00
Dave Pearson
8c5749898f Clean up trailing whitespace 2022-10-14 18:16:30 +01:00
Will McGugan
86a7bef71f replace references to TextInput 2022-10-03 17:38:10 +01:00
Will McGugan
d962dcd49c new align 2022-09-27 16:35:40 +01:00
Will McGugan
f70232ca5c Merge pull request #789 from Textualize/css-path
changed to CSS_PATH
2022-09-20 14:34:59 +01:00
Will McGugan
5ff12ddb4b Update docs/guide/events.md
Co-authored-by: darrenburns <darrenburns@users.noreply.github.com>
2022-09-20 14:28:22 +01:00
Will McGugan
8685567abd Update docs/guide/events.md
Co-authored-by: darrenburns <darrenburns@users.noreply.github.com>
2022-09-20 14:28:16 +01:00
Will McGugan
d0293c2c89 changed to CSS_PATH 2022-09-18 22:02:08 +01:00
Will McGugan
f2c5e6ce78 docs and reference 2022-09-18 19:14:46 +01:00
Will McGugan
4e732ce309 dictionary example 2022-09-18 15:43:47 +01:00
Will McGugan
614b29e222 event docs 2022-09-18 09:10:22 +01:00
Will McGugan
1013f84ffc diagrams 2022-09-17 10:31:21 +01:00
Will McGugan
bf90f7032d text log widget 2022-09-16 16:14:28 +01:00
Will McGugan
dfdb20d66e reference 2022-09-15 21:56:57 +01:00
Will McGugan
0cdf1010ed events copy 2022-09-15 21:41:23 +01:00
Will McGugan
d9d5791925 todos 2022-09-06 15:39:41 +01:00
Will McGugan
3e41e14714 box diagram 2022-09-06 10:50:12 +01:00
Will McGugan
f7ff893de8 more docs 2022-08-10 17:49:45 +01:00