.. 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.pubsub.core.publisher

.. highlight:: python



.. _wx.lib.pubsub.core.publisher.Publisher:

==========================================================================================================================================
|phoenix_title|  **wx.lib.pubsub.core.publisher.Publisher**
==========================================================================================================================================

Publisher used for kwargs protocol, ie when sending message data
via keyword arguments.



|

|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>Publisher</strong>:</label>
      <div class="collapsible-content">
         <p class="graphviz">
            <center><img src="_static/images/inheritance/wx.lib.pubsub.core.publisher.Publisher_inheritance.svg" alt="Inheritance diagram of Publisher" usemap="#dummy" class="inheritance invert-in-dark-mode"/></center>
            <map id="dummy" name="dummy"> <area shape="rect" id="node1" href="wx.lib.pubsub.core.publisher.Publisher.html" title="Publisher used for kwargs protocol, ie when sending message data" alt="" coords="42,82,345,111"/> <area shape="rect" id="node2" href="wx.lib.pubsub.core.publisherbase.PublisherBase.html" title="Represent the class that send messages to listeners of given" alt="" coords="5,5,381,34"/> </map> 
         </p>
      </div>
   </div>
   <script type="text/javascript" src="_static/inheritancetoggle.js"></script>



|


|sub_classes| Known Subclasses
==============================

:class:`wx.lib.pubsub.core.publisher.PublisherArg1Stage2`

|


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

:class:`wx.lib.pubsub.core.publisherbase.PublisherBase`

|


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

================================================================================ ================================================================================
:meth:`~wx.lib.pubsub.core.publisher.Publisher.getMsgProtocol`                   
:meth:`~wx.lib.pubsub.core.publisher.Publisher.sendMessage`                      Send a message.
================================================================================ ================================================================================


|


|api| Class API
===============


.. class:: Publisher(PublisherBase)

   Publisher used for kwargs protocol, ie when sending message data
   via keyword arguments.

   .. method:: getMsgProtocol(self)


   .. method:: sendMessage(self, topicName, \*\*kwargs)

      Send a message.
      
      :param topicName: name of message topic (dotted or tuple format)
      :param kwargs: message data (must satisfy the topic's MDS)


