.. include:: headings.inc .. currentmodule:: lib.delayedresult .. highlight:: python .. _lib.delayedresult.SenderWxEvent: ========================================================================================================================================== |phoenix_title| **SenderWxEvent** ========================================================================================================================================== This sender sends the delayed result produced in the worker thread to an event handler in the main thread, via a wx event of class *eventClass*. The result is an attribute of the event (default: "delayedResult". | |class_hierarchy| Inheritance Diagram ===================================== Inheritance diagram for class **SenderWxEvent** .. raw:: html

Inheritance diagram of SenderWxEvent

| |super_classes| Known Superclasses ================================== :class:`lib.delayedresult.Sender` | |method_summary| Methods Summary ================================ ================================================================================ ================================================================================ :meth:`~lib.delayedresult.SenderWxEvent.__init__` The handler must derive from wx.EvtHandler. The event class ================================================================================ ================================================================================ | |api| Class API =============== .. class:: SenderWxEvent( Sender ) This sender sends the delayed result produced in the worker thread to an event handler in the main thread, via a wx event of class *eventClass*. The result is an attribute of the event (default: "delayedResult". .. method:: __init__(self, handler, eventClass, resultAttr="delayedResult", jobID=None, \*\*kwargs) The handler must derive from wx.EvtHandler. The event class is typically the first item in the pair returned by wx.lib.newevent.NewEvent(). You can use the *resultAttr* to change the attribute name of the generated event's delayed result.