You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think Textual should look for the decorated handler first, then the naming convention.
Note that we have a sender attribute, which for the most part could be used to match against the selector. Consequently I think we need a method on the message itself, so that any given message hand override the matching behaviour.
The text was updated successfully, but these errors were encountered:
Add a decorator approach to handling messages, in addition to the naming convention.
Implement a function called
on
, importable from the root. This would take the message type, and an optional selector.The message system would check for decorated handlers before the naming convention.
Note: there could be more than one handler associated with a method.
I think Textual should look for the decorated handler first, then the naming convention.
Note that we have a
sender
attribute, which for the most part could be used to match against the selector. Consequently I think we need a method on the message itself, so that any given message hand override the matching behaviour.The text was updated successfully, but these errors were encountered: