.. 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.adv.DateEvent:

==========================================================================================================================================
|phoenix_title|  **wx.adv.DateEvent**
==========================================================================================================================================

This event class holds information about a date change and is used together with :ref:`wx.adv.DatePickerCtrl`.          

It also serves as a base class for :ref:`wx.adv.CalendarEvent`. 









|

|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>DateEvent</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.adv.DateEvent_inheritance.png" alt="Inheritance diagram of DateEvent" 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.adv.DateEvent.html" title="This event class holds information about a date change and is used together with wx.adv.DatePickerCtrl." alt="" coords="9,237,153,267"/> <area shape="rect" id="node2" href="wx.CommandEvent.html" title="This event class contains information about command events, which originate from a variety of simple controls." alt="" coords="5,160,157,189"/> <area shape="rect" id="node3" href="wx.Event.html" title="An event is a structure holding information about an event passed to a callback or member function." alt="" coords="40,83,123,112"/> <area shape="rect" id="node4" href="wx.Object.html" title="This is the root class of many of the wxWidgets classes." alt="" coords="37,5,125,35"/> </map> 
   </p>
   </div>

|


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

:ref:`wx.adv.CalendarEvent`

|


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

================================================================================ ================================================================================
:meth:`~wx.adv.DateEvent.__init__`                                               
:meth:`~wx.adv.DateEvent.GetDate`                                                Returns the date.
:meth:`~wx.adv.DateEvent.PyGetDate`                                              Return the date as a Python datetime.date object.
:meth:`~wx.adv.DateEvent.SetDate`                                                Sets the date carried by the event, normally only used by the library internally.
================================================================================ ================================================================================


|


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

================================================================================ ================================================================================
:attr:`~wx.adv.DateEvent.Date`                                                   See :meth:`~wx.adv.DateEvent.GetDate` and :meth:`~wx.adv.DateEvent.SetDate`
================================================================================ ================================================================================


|


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


.. class:: wx.adv.DateEvent(CommandEvent)

   **Possible constructors**::

       DateEvent()
       
       DateEvent(win, dt, type)
       
   
   This event class holds information about a date change and is used
   together with DatePickerCtrl.



   .. method:: __init__(self, *args, **kw)



      |overload| Overloaded Implementations:

      :html:`<hr class="overloadsep" /><br />`

      
      **__init__** `(self)`
      
      
      
      
      
      :html:`<hr class="overloadsep" /><br />`

      
      **__init__** `(self, win, dt, type)`
      
      
      
      
      :param `win`: 
      :type `win`: wx.Window
      :param `dt`: 
      :type `dt`: wx.DateTime
      :param `type`: 
      :type `type`: wx.EventType
      
      
      
      
      
      
      :html:`<hr class="overloadsep" /><br />`






   .. method:: GetDate(self)

      Returns the date.                  

      :rtype: `DateTime`     








   .. method:: PyGetDate(self)

      Return the date as a Python datetime.date object.



   .. method:: SetDate(self, date)

      Sets the date carried by the event, normally only used by the library internally.                  


      :param `date`: 
      :type `date`: wx.DateTime







   .. attribute:: Date

      See :meth:`~wx.adv.DateEvent.GetDate` and :meth:`~wx.adv.DateEvent.SetDate`