1//---------------------------------------------------------------------------
2// This file is generated by wxPython's SIP generator.  Do not edit by hand.
3//
4// Copyright: (c) 2018 by Total Control Software
5// License:   wxWindows License
6//
7// This file will be included by _adv.sip
8//
9//---------------------------------------------------------------------------
10
11%ModuleHeaderCode
12#include <wx/dateevt.h>
13%End
14
15
16//---------------------------------------------------------------------------
17
18wxEventType wxEVT_DATE_CHANGED   /PyName=wxEVT_DATE_CHANGED/;
19
20wxEventType wxEVT_TIME_CHANGED   /PyName=wxEVT_TIME_CHANGED/;
21
22class wxDateEvent : wxCommandEvent
23{
24    %Docstring
25        DateEvent()
26        DateEvent(win, dt, type)
27
28        This event class holds information about a date change and is used
29        together with wxDatePickerCtrl.
30    %End
31    %TypeHeaderCode
32        #include <wx/dateevt.h>
33    %End
34
35public:
36    wxDateEvent();
37
38    wxDateEvent(
39        wxWindow * win,
40        const wxDateTime & dt,
41        wxEventType type
42    );
43
44    const wxDateTime & GetDate() const;
45    %Docstring
46        GetDate() -> wx.DateTime
47
48        Returns the date.
49    %End
50
51    void SetDate(
52        const wxDateTime & date
53    );
54    %Docstring
55        SetDate(date)
56
57        Sets the date carried by the event, normally only used by the library
58        internally.
59    %End
60
61    public:
62    virtual wxEvent* Clone() const /Factory/;
63
64
65    private:
66        wxDateEvent& operator=(const wxDateEvent&);
67
68
69    public:
70
71
72    %Property(name=Date, get=GetDate, set=SetDate)
73};  // end of class wxDateEvent
74
75
76%Extract(id=pycode_adv)
77def _DateEvent_PyGetDate(self):
78    """
79    Return the date as a Python datetime.date object.
80    """
81    return wx.wxdate2pydate(self.GetDate())
82DateEvent.PyGetDate = wx.deprecated(_DateEvent_PyGetDate, "Use GetDate instead.")
83del _DateEvent_PyGetDate
84%End
85
86%Extract(id=pycode_adv)
87DateEvent.PySetDate = wx.deprecated(DateEvent.SetDate, 'Use SetDate instead.')
88
89%End
90
91%Extract(id=pycode_adv)
92EVT_DATE_CHANGED = wx.PyEventBinder( wxEVT_DATE_CHANGED, 1 )
93EVT_TIME_CHANGED = wx.PyEventBinder( wxEVT_TIME_CHANGED, 1 )
94
95%End
96
97
98//---------------------------------------------------------------------------
99
100