.. wxPython Phoenix documentation
This file was generated by Phoenix's sphinx generator and associated
tools, do not edit by hand.
Copyright: (c) 2011-2020 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

Inheritance diagram for class
WindowModalDialogEvent:
|
|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: EventType=wxEVT_NULL, id: int=0) ->
None
Event sent by `Dialog.ShowWindowModal()` when the dialog closes.
.. method:: __init__(self, commandType: EventType=wxEVT_NULL, id: int=0)
Constructor.
:param `commandType`:
:type `commandType`: wx.EventType
:param `id`:
:type `id`: int
:rtype: `None`
.. 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`