.. include:: headings.inc .. currentmodule:: lib.evtmgr .. highlight:: python .. _lib.evtmgr.EventAdapter: ========================================================================================================================================== |phoenix_title| **EventAdapter** ========================================================================================================================================== A class that adapts incoming wxWindows events to Publish/Subscribe messages. In other words, this is the object that's seen by the wxWindows system. Only one of these registers for any particular wxWindows event. It then relays it into the PS system, which lets many listeners respond. | |class_hierarchy| Inheritance Diagram ===================================== Inheritance diagram for class **EventAdapter** .. raw:: html

Inheritance diagram of EventAdapter

| |method_summary| Methods Summary ================================ ================================================================================ ================================================================================ :meth:`~lib.evtmgr.EventAdapter.__init__` Instantiate a new adapter. Pre-compute my Publish/Subscribe :meth:`~lib.evtmgr.EventAdapter.Destroy` :meth:`~lib.evtmgr.EventAdapter.disconnect` :meth:`~lib.evtmgr.EventAdapter.handleEvent` In response to a wxWindows event, send a PS message ================================================================================ ================================================================================ | |api| Class API =============== .. class:: EventAdapter A class that adapts incoming wxWindows events to Publish/Subscribe messages. In other words, this is the object that's seen by the wxWindows system. Only one of these registers for any particular wxWindows event. It then relays it into the PS system, which lets many listeners respond. .. method:: __init__(self, func, win, id) Instantiate a new adapter. Pre-compute my Publish/Subscribe topic, which is constant, and register with wxWindows. .. method:: Destroy(self) .. method:: disconnect(self) .. method:: handleEvent(self, event) In response to a wxWindows event, send a PS message