1 # This file was created automatically by SWIG.
12 from clip_dnd
import *
14 from controls
import *
21 def EVT_CALENDAR(win
, id, fn
):
22 win
.Connect(id, -1, wxEVT_CALENDAR_DOUBLECLICKED
, fn
)
24 def EVT_CALENDAR_SEL_CHANGED(win
, id, fn
):
25 win
.Connect(id, -1, wxEVT_CALENDAR_SEL_CHANGED
, fn
)
27 def EVT_CALENDAR_DAY(win
, id, fn
):
28 win
.Connect(id, -1, wxEVT_CALENDAR_DAY_CHANGED
, fn
)
30 def EVT_CALENDAR_MONTH(win
, id, fn
):
31 win
.Connect(id, -1, wxEVT_CALENDAR_MONTH_CHANGED
, fn
)
33 def EVT_CALENDAR_YEAR(win
, id, fn
):
34 win
.Connect(id, -1, wxEVT_CALENDAR_YEAR_CHANGED
, fn
)
36 def EVT_CALENDAR_WEEKDAY_CLICKED(win
, id, fn
):
37 win
.Connect(id, -1, wxEVT_CALENDAR_WEEKDAY_CLICKED
, fn
)
40 class wxCalendarDateAttrPtr
:
41 def __init__(self
,this
):
44 def SetTextColour(self
, *_args
, **_kwargs
):
45 val
= calendarc
.wxCalendarDateAttr_SetTextColour(self
, *_args
, **_kwargs
)
47 def SetBackgroundColour(self
, *_args
, **_kwargs
):
48 val
= calendarc
.wxCalendarDateAttr_SetBackgroundColour(self
, *_args
, **_kwargs
)
50 def SetBorderColour(self
, *_args
, **_kwargs
):
51 val
= calendarc
.wxCalendarDateAttr_SetBorderColour(self
, *_args
, **_kwargs
)
53 def SetFont(self
, *_args
, **_kwargs
):
54 val
= calendarc
.wxCalendarDateAttr_SetFont(self
, *_args
, **_kwargs
)
56 def SetBorder(self
, *_args
, **_kwargs
):
57 val
= calendarc
.wxCalendarDateAttr_SetBorder(self
, *_args
, **_kwargs
)
59 def SetHoliday(self
, *_args
, **_kwargs
):
60 val
= calendarc
.wxCalendarDateAttr_SetHoliday(self
, *_args
, **_kwargs
)
62 def HasTextColour(self
, *_args
, **_kwargs
):
63 val
= calendarc
.wxCalendarDateAttr_HasTextColour(self
, *_args
, **_kwargs
)
65 def HasBackgroundColour(self
, *_args
, **_kwargs
):
66 val
= calendarc
.wxCalendarDateAttr_HasBackgroundColour(self
, *_args
, **_kwargs
)
68 def HasBorderColour(self
, *_args
, **_kwargs
):
69 val
= calendarc
.wxCalendarDateAttr_HasBorderColour(self
, *_args
, **_kwargs
)
71 def HasFont(self
, *_args
, **_kwargs
):
72 val
= calendarc
.wxCalendarDateAttr_HasFont(self
, *_args
, **_kwargs
)
74 def HasBorder(self
, *_args
, **_kwargs
):
75 val
= calendarc
.wxCalendarDateAttr_HasBorder(self
, *_args
, **_kwargs
)
77 def IsHoliday(self
, *_args
, **_kwargs
):
78 val
= calendarc
.wxCalendarDateAttr_IsHoliday(self
, *_args
, **_kwargs
)
80 def GetTextColour(self
, *_args
, **_kwargs
):
81 val
= calendarc
.wxCalendarDateAttr_GetTextColour(self
, *_args
, **_kwargs
)
82 if val
: val
= wxColourPtr(val
) ; val
.thisown
= 1
84 def GetBackgroundColour(self
, *_args
, **_kwargs
):
85 val
= calendarc
.wxCalendarDateAttr_GetBackgroundColour(self
, *_args
, **_kwargs
)
86 if val
: val
= wxColourPtr(val
) ; val
.thisown
= 1
88 def GetBorderColour(self
, *_args
, **_kwargs
):
89 val
= calendarc
.wxCalendarDateAttr_GetBorderColour(self
, *_args
, **_kwargs
)
90 if val
: val
= wxColourPtr(val
) ; val
.thisown
= 1
92 def GetFont(self
, *_args
, **_kwargs
):
93 val
= calendarc
.wxCalendarDateAttr_GetFont(self
, *_args
, **_kwargs
)
94 if val
: val
= wxFontPtr(val
) ; val
.thisown
= 1
96 def GetBorder(self
, *_args
, **_kwargs
):
97 val
= calendarc
.wxCalendarDateAttr_GetBorder(self
, *_args
, **_kwargs
)
100 return "<%s.%s instance; proxy of C++ wxCalendarDateAttr instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
)
101 class wxCalendarDateAttr(wxCalendarDateAttrPtr
):
102 def __init__(self
,*_args
,**_kwargs
):
103 self
.this
= calendarc
.new_wxCalendarDateAttr(*_args
,**_kwargs
)
108 def wxCalendarDateAttrBorder(*_args
,**_kwargs
):
109 val
= wxCalendarDateAttrPtr(calendarc
.new_wxCalendarDateAttrBorder(*_args
,**_kwargs
))
114 class wxCalendarEventPtr(wxCommandEventPtr
):
115 def __init__(self
,this
):
118 def GetDate(self
, *_args
, **_kwargs
):
119 val
= calendarc
.wxCalendarEvent_GetDate(self
, *_args
, **_kwargs
)
120 if val
: val
= wxDateTimePtr(val
)
122 def GetWeekDay(self
, *_args
, **_kwargs
):
123 val
= calendarc
.wxCalendarEvent_GetWeekDay(self
, *_args
, **_kwargs
)
126 return "<%s.%s instance; proxy of C++ wxCalendarEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
)
127 class wxCalendarEvent(wxCalendarEventPtr
):
128 def __init__(self
,*_args
,**_kwargs
):
129 self
.this
= calendarc
.new_wxCalendarEvent(*_args
,**_kwargs
)
135 class wxCalendarCtrlPtr(wxControlPtr
):
136 def __init__(self
,this
):
139 def Create(self
, *_args
, **_kwargs
):
140 val
= calendarc
.wxCalendarCtrl_Create(self
, *_args
, **_kwargs
)
142 def SetDate(self
, *_args
, **_kwargs
):
143 val
= calendarc
.wxCalendarCtrl_SetDate(self
, *_args
, **_kwargs
)
145 def GetDate(self
, *_args
, **_kwargs
):
146 val
= calendarc
.wxCalendarCtrl_GetDate(self
, *_args
, **_kwargs
)
147 if val
: val
= wxDateTimePtr(val
)
149 def SetLowerDateLimit(self
, *_args
, **_kwargs
):
150 val
= calendarc
.wxCalendarCtrl_SetLowerDateLimit(self
, *_args
, **_kwargs
)
152 def GetLowerDateLimit(self
, *_args
, **_kwargs
):
153 val
= calendarc
.wxCalendarCtrl_GetLowerDateLimit(self
, *_args
, **_kwargs
)
154 if val
: val
= wxDateTimePtr(val
)
156 def SetUpperDateLimit(self
, *_args
, **_kwargs
):
157 val
= calendarc
.wxCalendarCtrl_SetUpperDateLimit(self
, *_args
, **_kwargs
)
159 def GetUpperDateLimit(self
, *_args
, **_kwargs
):
160 val
= calendarc
.wxCalendarCtrl_GetUpperDateLimit(self
, *_args
, **_kwargs
)
161 if val
: val
= wxDateTimePtr(val
)
163 def SetDateRange(self
, *_args
, **_kwargs
):
164 val
= calendarc
.wxCalendarCtrl_SetDateRange(self
, *_args
, **_kwargs
)
166 def EnableYearChange(self
, *_args
, **_kwargs
):
167 val
= calendarc
.wxCalendarCtrl_EnableYearChange(self
, *_args
, **_kwargs
)
169 def EnableMonthChange(self
, *_args
, **_kwargs
):
170 val
= calendarc
.wxCalendarCtrl_EnableMonthChange(self
, *_args
, **_kwargs
)
172 def EnableHolidayDisplay(self
, *_args
, **_kwargs
):
173 val
= calendarc
.wxCalendarCtrl_EnableHolidayDisplay(self
, *_args
, **_kwargs
)
175 def SetHeaderColours(self
, *_args
, **_kwargs
):
176 val
= calendarc
.wxCalendarCtrl_SetHeaderColours(self
, *_args
, **_kwargs
)
178 def GetHeaderColourFg(self
, *_args
, **_kwargs
):
179 val
= calendarc
.wxCalendarCtrl_GetHeaderColourFg(self
, *_args
, **_kwargs
)
180 if val
: val
= wxColourPtr(val
) ; val
.thisown
= 1
182 def GetHeaderColourBg(self
, *_args
, **_kwargs
):
183 val
= calendarc
.wxCalendarCtrl_GetHeaderColourBg(self
, *_args
, **_kwargs
)
184 if val
: val
= wxColourPtr(val
) ; val
.thisown
= 1
186 def SetHighlightColours(self
, *_args
, **_kwargs
):
187 val
= calendarc
.wxCalendarCtrl_SetHighlightColours(self
, *_args
, **_kwargs
)
189 def GetHighlightColourFg(self
, *_args
, **_kwargs
):
190 val
= calendarc
.wxCalendarCtrl_GetHighlightColourFg(self
, *_args
, **_kwargs
)
191 if val
: val
= wxColourPtr(val
) ; val
.thisown
= 1
193 def GetHighlightColourBg(self
, *_args
, **_kwargs
):
194 val
= calendarc
.wxCalendarCtrl_GetHighlightColourBg(self
, *_args
, **_kwargs
)
195 if val
: val
= wxColourPtr(val
) ; val
.thisown
= 1
197 def SetHolidayColours(self
, *_args
, **_kwargs
):
198 val
= calendarc
.wxCalendarCtrl_SetHolidayColours(self
, *_args
, **_kwargs
)
200 def GetHolidayColourFg(self
, *_args
, **_kwargs
):
201 val
= calendarc
.wxCalendarCtrl_GetHolidayColourFg(self
, *_args
, **_kwargs
)
202 if val
: val
= wxColourPtr(val
) ; val
.thisown
= 1
204 def GetHolidayColourBg(self
, *_args
, **_kwargs
):
205 val
= calendarc
.wxCalendarCtrl_GetHolidayColourBg(self
, *_args
, **_kwargs
)
206 if val
: val
= wxColourPtr(val
) ; val
.thisown
= 1
208 def GetAttr(self
, *_args
, **_kwargs
):
209 val
= calendarc
.wxCalendarCtrl_GetAttr(self
, *_args
, **_kwargs
)
210 if val
: val
= wxCalendarDateAttrPtr(val
)
212 def SetAttr(self
, *_args
, **_kwargs
):
213 val
= calendarc
.wxCalendarCtrl_SetAttr(self
, *_args
, **_kwargs
)
215 def SetHoliday(self
, *_args
, **_kwargs
):
216 val
= calendarc
.wxCalendarCtrl_SetHoliday(self
, *_args
, **_kwargs
)
218 def ResetAttr(self
, *_args
, **_kwargs
):
219 val
= calendarc
.wxCalendarCtrl_ResetAttr(self
, *_args
, **_kwargs
)
221 def HitTest(self
, *_args
, **_kwargs
):
222 val
= calendarc
.wxCalendarCtrl_HitTest(self
, *_args
, **_kwargs
)
224 def Enable(self
, *_args
, **_kwargs
):
225 val
= calendarc
.wxCalendarCtrl_Enable(self
, *_args
, **_kwargs
)
227 def Show(self
, *_args
, **_kwargs
):
228 val
= calendarc
.wxCalendarCtrl_Show(self
, *_args
, **_kwargs
)
231 return "<%s.%s instance; proxy of C++ wxCalendarCtrl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
)
232 class wxCalendarCtrl(wxCalendarCtrlPtr
):
233 def __init__(self
,*_args
,**_kwargs
):
234 self
.this
= calendarc
.new_wxCalendarCtrl(*_args
,**_kwargs
)
236 self
._setOORInfo
(self
)
240 def wxPreCalendarCtrl(*_args
,**_kwargs
):
241 val
= wxCalendarCtrlPtr(calendarc
.new_wxPreCalendarCtrl(*_args
,**_kwargs
))
249 #-------------- FUNCTION WRAPPERS ------------------
253 #-------------- VARIABLE WRAPPERS ------------------
255 wxCAL_SUNDAY_FIRST
= calendarc
.wxCAL_SUNDAY_FIRST
256 wxCAL_MONDAY_FIRST
= calendarc
.wxCAL_MONDAY_FIRST
257 wxCAL_SHOW_HOLIDAYS
= calendarc
.wxCAL_SHOW_HOLIDAYS
258 wxCAL_NO_YEAR_CHANGE
= calendarc
.wxCAL_NO_YEAR_CHANGE
259 wxCAL_NO_MONTH_CHANGE
= calendarc
.wxCAL_NO_MONTH_CHANGE
260 wxCAL_SEQUENTIAL_MONTH_SELECTION
= calendarc
.wxCAL_SEQUENTIAL_MONTH_SELECTION
261 wxCAL_SHOW_SURROUNDING_WEEKS
= calendarc
.wxCAL_SHOW_SURROUNDING_WEEKS
262 wxCAL_HITTEST_NOWHERE
= calendarc
.wxCAL_HITTEST_NOWHERE
263 wxCAL_HITTEST_HEADER
= calendarc
.wxCAL_HITTEST_HEADER
264 wxCAL_HITTEST_DAY
= calendarc
.wxCAL_HITTEST_DAY
265 wxCAL_HITTEST_INCMONTH
= calendarc
.wxCAL_HITTEST_INCMONTH
266 wxCAL_HITTEST_DECMONTH
= calendarc
.wxCAL_HITTEST_DECMONTH
267 wxCAL_HITTEST_SURROUNDING_WEEK
= calendarc
.wxCAL_HITTEST_SURROUNDING_WEEK
268 wxCAL_BORDER_NONE
= calendarc
.wxCAL_BORDER_NONE
269 wxCAL_BORDER_SQUARE
= calendarc
.wxCAL_BORDER_SQUARE
270 wxCAL_BORDER_ROUND
= calendarc
.wxCAL_BORDER_ROUND
271 wxEVT_CALENDAR_DOUBLECLICKED
= calendarc
.wxEVT_CALENDAR_DOUBLECLICKED
272 wxEVT_CALENDAR_SEL_CHANGED
= calendarc
.wxEVT_CALENDAR_SEL_CHANGED
273 wxEVT_CALENDAR_DAY_CHANGED
= calendarc
.wxEVT_CALENDAR_DAY_CHANGED
274 wxEVT_CALENDAR_MONTH_CHANGED
= calendarc
.wxEVT_CALENDAR_MONTH_CHANGED
275 wxEVT_CALENDAR_YEAR_CHANGED
= calendarc
.wxEVT_CALENDAR_YEAR_CHANGED
276 wxEVT_CALENDAR_WEEKDAY_CLICKED
= calendarc
.wxEVT_CALENDAR_WEEKDAY_CLICKED
279 #-------------- USER INCLUDE -----------------------
282 # Stuff these names into the wx namespace so wxPyConstructObject can find them
284 wx
.wxCalendarEventPtr
= wxCalendarEventPtr
285 wx
.wxCalendarCtrlPtr
= wxCalendarCtrlPtr