mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
header fixes, and lazy queries
This commit is contained in:
@@ -342,10 +342,13 @@ class MessagePump(metaclass=MessagePumpMeta):
|
||||
message (Message): Message object.
|
||||
|
||||
"""
|
||||
private_method = f"_{method_name}"
|
||||
for cls in self.__class__.__mro__:
|
||||
if message._no_default_action:
|
||||
break
|
||||
method = cls.__dict__.get(method_name, None)
|
||||
method = cls.__dict__.get(private_method, None) or cls.__dict__.get(
|
||||
method_name, None
|
||||
)
|
||||
if method is not None:
|
||||
yield cls, method.__get__(self, cls)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user