.. wxPython Phoenix documentation

   This file was generated by Phoenix's sphinx generator and associated
   tools, do not edit by hand.

   Copyright: (c) 2011-2025 by Total Control Software
   License:   wxWindows License

.. include:: headings.inc

.. currentmodule:: wx.lib.delayedresult

.. highlight:: python



.. _wx.lib.delayedresult.SenderWxEvent:

==========================================================================================================================================
|phoenix_title|  **wx.lib.delayedresult.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| Class Hierarchy
=================================

.. raw:: html

   <div class="collabsible-wrapper">
      <input id="collapsible-inheritance" class="collapsible-checkbox" type="checkbox">
      <label for="collapsible-inheritance" tabindex="0" title="Show inheritance diagram" class="collapsible-label">Inheritance diagram for class <strong>SenderWxEvent</strong>:</label>
      <div class="collapsible-content">
         <p class="graphviz">
            <center><img src="_static/images/inheritance/wx.lib.delayedresult.SenderWxEvent_inheritance.svg" alt="Inheritance diagram of SenderWxEvent" usemap="#dummy" class="inheritance invert-in-dark-mode"/></center>
            <map id="dummy" name="dummy"> <area shape="rect" id="node1" href="wx.lib.delayedresult.SenderWxEvent.html" title="This sender sends the delayed result produced in the worker thread" alt="" coords="5,82,295,111"/> <area shape="rect" id="node2" href="wx.lib.delayedresult.Sender.html" title="Base class for various kinds of senders. A sender sends a result" alt="" coords="37,5,263,34"/> </map> 
         </p>
      </div>
   </div>
   <script type="text/javascript" src="_static/inheritancetoggle.js"></script>



|


|super_classes| Known Superclasses
==================================

:class:`wx.lib.delayedresult.Sender`

|


|method_summary| Methods Summary
================================

================================================================================ ================================================================================
:meth:`~wx.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. 


