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
By default, the decorator on accepts a selector that applies to the attribute control of the message.
We want on to grow **kwargs so that we can specify arbitrary selectors for arbitrary attributes of the messages we handle.
E.g., to handle the message Tabs.TabActivated, we may want @on(Tabs.TabActivated, tab="#first-tab") to handle the activation of the tab #first-tab.
EDIT: instead of matching arbitrary attributes of the message, we can only try to match attributes that have been whitelisted in the message's classvar ON_MATCHABLE_ATTRIBUTES.
The text was updated successfully, but these errors were encountered:
By default, the decorator
on
accepts a selector that applies to the attributecontrol
of the message.We want
on
to grow**kwargs
so that we can specify arbitrary selectors for arbitrary attributes of the messages we handle.E.g., to handle the message
Tabs.TabActivated
, we may want@on(Tabs.TabActivated, tab="#first-tab")
to handle the activation of the tab#first-tab
.EDIT: instead of matching arbitrary attributes of the message, we can only try to match attributes that have been whitelisted in the message's classvar
ON_MATCHABLE_ATTRIBUTES
.The text was updated successfully, but these errors were encountered: