.. 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.WindowCreateEvent:

==========================================================================================================================================
|phoenix_title|  **wx.WindowCreateEvent**
==========================================================================================================================================

This event is sent just after the actual window associated with a :ref:`wx.Window`  object has been created.          

Since it is derived from :ref:`wx.CommandEvent`, the event propagates up the window hierarchy. 







.. _WindowCreateEvent-events:

|events| Events Emitted by this Class
=====================================

Handlers bound for the following event types will receive a :ref:`wx.WindowCreateEvent` parameter.

Event macros: 

- EVT_WINDOW_CREATE: Process a  ``wxEVT_CREATE``   event.   








         



.. seealso:: :ref:`Events and Event Handling <events and event handling>`, :ref:`wx.WindowDestroyEvent`    







|

|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>WindowCreateEvent</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.WindowCreateEvent_inheritance.png" alt="Inheritance diagram of WindowCreateEvent" usemap="#dummy" class="inheritance"/></center>
   <script type="text/javascript">toggleVisibilityOnLoad(document.getElementById('toggleBlock'))</script>
   <map id="dummy" name="dummy"> <area shape="rect" id="node1" href="wx.WindowCreateEvent.html" title="wx.WindowCreateEvent" alt="" coords="5,237,183,267"/> <area shape="rect" id="node2" href="wx.CommandEvent.html" title="wx.CommandEvent" alt="" coords="19,160,169,189"/> <area shape="rect" id="node3" href="wx.Event.html" title="wx.Event" alt="" coords="53,83,135,112"/> <area shape="rect" id="node4" href="wx.Object.html" title="wx.Object" alt="" coords="51,5,137,35"/> </map> 
   </p>
   </div>

|


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

================================================================================ ================================================================================
:meth:`~wx.WindowCreateEvent.__init__`                                           Constructor.
:meth:`~wx.WindowCreateEvent.GetWindow`                                          Return the window being created.
================================================================================ ================================================================================


|


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

================================================================================ ================================================================================
:attr:`~wx.WindowCreateEvent.Window`                                             See :meth:`~wx.WindowCreateEvent.GetWindow`
================================================================================ ================================================================================


|


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


.. class:: wx.WindowCreateEvent(CommandEvent)

   **Possible constructors**::

       WindowCreateEvent(win=None)
       
   
   This event is sent just after the actual window associated with a
   Window object has been created.



   .. method:: __init__(self, win=None)

      Constructor.                  


      :param `win`: 
      :type `win`: wx.Window







   .. method:: GetWindow(self)

      Return the window being created.                  

      :rtype: :ref:`wx.Window`








   .. attribute:: Window

      See :meth:`~wx.WindowCreateEvent.GetWindow`

