.. wxPython Phoenix documentation

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

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

.. include:: headings.inc



.. _wx.WindowModalDialogEvent:

==========================================================================================================================================
|phoenix_title|  **wx.WindowModalDialogEvent**
==========================================================================================================================================

Event sent by :meth:`wx.Dialog.ShowWindowModal`   when the dialog closes.          

         



.. versionadded:: 2.9.0 
     







|

|class_hierarchy| Class Hierarchy
=================================

.. raw:: html

   <div id="toggleBlock" onclick="return toggleVisibility(this)" class="closed" style="cursor:pointer;">
   <img id="toggleBlock-trigger" src="_static/images/closed.png"/>
   Inheritance diagram for class <strong>WindowModalDialogEvent</strong>:
   </div>
   <div id="toggleBlock-summary" style="display:block;"></div>
   <div id="toggleBlock-content" style="display:none;">
   <p class="graphviz">
   <center><img src="_static/images/inheritance/wx.WindowModalDialogEvent_inheritance.png" alt="Inheritance diagram of WindowModalDialogEvent" usemap="#dummy" class="inheritance"/></center>
   </div>
   <script type="text/javascript">toggleVisibilityOnLoad(document.getElementById('toggleBlock'))</script>
   <map id="dummy" name="dummy"> <area shape="rect" id="node1" href="wx.WindowModalDialogEvent.html" title="wx.WindowModalDialogEvent" alt="" coords="5,237,208,267"/> <area shape="rect" id="node2" href="wx.CommandEvent.html" title="wx.CommandEvent" alt="" coords="34,160,179,189"/> <area shape="rect" id="node3" href="wx.Event.html" title="wx.Event" alt="" coords="67,83,145,112"/> <area shape="rect" id="node4" href="wx.Object.html" title="wx.Object" alt="" coords="65,5,147,35"/> </map> 
   </p>

|


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

================================================================================ ================================================================================
:meth:`~wx.WindowModalDialogEvent.__init__`                                      Constructor.
:meth:`~wx.WindowModalDialogEvent.Clone`                                         Clone the event.
:meth:`~wx.WindowModalDialogEvent.GetDialog`                                     Return the corresponding dialog.
:meth:`~wx.WindowModalDialogEvent.GetReturnCode`                                 Return the dialog's return code.
================================================================================ ================================================================================


|


|property_summary| Properties Summary
=====================================

================================================================================ ================================================================================
:attr:`~wx.WindowModalDialogEvent.Dialog`                                        See :meth:`~wx.WindowModalDialogEvent.GetDialog`
:attr:`~wx.WindowModalDialogEvent.ReturnCode`                                    See :meth:`~wx.WindowModalDialogEvent.GetReturnCode`
================================================================================ ================================================================================


|


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


.. class:: wx.WindowModalDialogEvent(CommandEvent)

   **Possible constructors**::

       WindowModalDialogEvent(commandType=wxEVT_NULL, id=0)
       
   
   Event sent by `Dialog.ShowWindowModal()` when the dialog closes.



   .. method:: __init__(self, commandType=wxEVT_NULL, id=0)

      Constructor.                  


      :param `commandType`: 
      :type `commandType`: wx.EventType
      :param `id`: 
      :type `id`: int







   .. method:: Clone(self)

      Clone the event.                  

      :rtype: :ref:`wx.Event`








   .. method:: GetDialog(self)

      Return the corresponding dialog.                  

      :rtype: :ref:`wx.Dialog`








   .. method:: GetReturnCode(self)

      Return the dialog's return code.                  

      :rtype: `int`








   .. attribute:: Dialog

      See :meth:`~wx.WindowModalDialogEvent.GetDialog`


   .. attribute:: ReturnCode

      See :meth:`~wx.WindowModalDialogEvent.GetReturnCode`

