.. wxPython Phoenix documentation This file was generated by Phoenix's sphinx generator and associated tools, do not edit by hand. Copyright: (c) 2011-2020 by Total Control Software License: wxWindows License .. include:: headings.inc .. currentmodule:: wx.lib.pubsub.core.listenerimpl .. highlight:: python .. _wx.lib.pubsub.core.listenerimpl.Listener: ========================================================================================================================================== |phoenix_title| **wx.lib.pubsub.core.listenerimpl.Listener** ========================================================================================================================================== Wraps a callable so it can be stored by weak reference and introspected to verify that it adheres to a topic's MDS. A Listener instance has the same hash value as the callable that it wraps. Callables that have 'argName=pub.AUTO_TOPIC' as a kwarg will be given the Topic object for the message sent by sendMessage(). Such a Listener will have wantsTopicObjOnCall() True. Callables that have a '**kargs' argument will receive all message data, not just that for the topic they are subscribed to. Such a listener will have wantsAllMessageData() True. | |class_hierarchy| Class Hierarchy ================================= .. raw:: html
Inheritance diagram for class Listener:
| |super_classes| Known Superclasses ================================== :class:`wx.lib.pubsub.core.listenerbase.ListenerBase` | |api| Class API =============== .. class:: Listener(ListenerBase) Wraps a callable so it can be stored by weak reference and introspected to verify that it adheres to a topic's MDS. A Listener instance has the same hash value as the callable that it wraps. Callables that have 'argName=pub.AUTO_TOPIC' as a kwarg will be given the Topic object for the message sent by sendMessage(). Such a Listener will have wantsTopicObjOnCall() True. Callables that have a '**kargs' argument will receive all message data, not just that for the topic they are subscribed to. Such a listener will have wantsAllMessageData() True.