]>
Commit | Line | Data |
---|---|---|
f6bcfd97 BP |
1 | # This file was created automatically by SWIG. |
2 | import calendarc | |
3 | ||
4 | from misc import * | |
5 | ||
6 | from windows import * | |
7 | ||
8 | from gdi import * | |
9 | ||
68bc8549 RD |
10 | from fonts import * |
11 | ||
f6bcfd97 BP |
12 | from clip_dnd import * |
13 | ||
14 | from controls import * | |
15 | ||
16 | from events import * | |
17 | ||
18 | from utils import * | |
19 | import wx | |
20 | ||
21 | def EVT_CALENDAR(win, id, fn): | |
22 | win.Connect(id, -1, wxEVT_CALENDAR_DOUBLECLICKED, fn) | |
23 | ||
24 | def EVT_CALENDAR_SEL_CHANGED(win, id, fn): | |
25 | win.Connect(id, -1, wxEVT_CALENDAR_SEL_CHANGED, fn) | |
26 | ||
27 | def EVT_CALENDAR_DAY(win, id, fn): | |
28 | win.Connect(id, -1, wxEVT_CALENDAR_DAY_CHANGED, fn) | |
29 | ||
30 | def EVT_CALENDAR_MONTH(win, id, fn): | |
31 | win.Connect(id, -1, wxEVT_CALENDAR_MONTH_CHANGED, fn) | |
32 | ||
33 | def EVT_CALENDAR_YEAR(win, id, fn): | |
34 | win.Connect(id, -1, wxEVT_CALENDAR_YEAR_CHANGED, fn) | |
35 | ||
36 | def EVT_CALENDAR_WEEKDAY_CLICKED(win, id, fn): | |
37 | win.Connect(id, -1, wxEVT_CALENDAR_WEEKDAY_CLICKED, fn) | |
38 | ||
39 | ||
eedf876b RD |
40 | class wxCalendarDateAttrPtr : |
41 | def __init__(self,this): | |
42 | self.this = this | |
43 | self.thisown = 0 | |
44 | def SetTextColour(self, *_args, **_kwargs): | |
5a2a9da2 | 45 | val = calendarc.wxCalendarDateAttr_SetTextColour(self, *_args, **_kwargs) |
eedf876b RD |
46 | return val |
47 | def SetBackgroundColour(self, *_args, **_kwargs): | |
5a2a9da2 | 48 | val = calendarc.wxCalendarDateAttr_SetBackgroundColour(self, *_args, **_kwargs) |
eedf876b RD |
49 | return val |
50 | def SetBorderColour(self, *_args, **_kwargs): | |
5a2a9da2 | 51 | val = calendarc.wxCalendarDateAttr_SetBorderColour(self, *_args, **_kwargs) |
eedf876b RD |
52 | return val |
53 | def SetFont(self, *_args, **_kwargs): | |
5a2a9da2 | 54 | val = calendarc.wxCalendarDateAttr_SetFont(self, *_args, **_kwargs) |
eedf876b RD |
55 | return val |
56 | def SetBorder(self, *_args, **_kwargs): | |
5a2a9da2 | 57 | val = calendarc.wxCalendarDateAttr_SetBorder(self, *_args, **_kwargs) |
eedf876b RD |
58 | return val |
59 | def SetHoliday(self, *_args, **_kwargs): | |
5a2a9da2 | 60 | val = calendarc.wxCalendarDateAttr_SetHoliday(self, *_args, **_kwargs) |
eedf876b RD |
61 | return val |
62 | def HasTextColour(self, *_args, **_kwargs): | |
5a2a9da2 | 63 | val = calendarc.wxCalendarDateAttr_HasTextColour(self, *_args, **_kwargs) |
eedf876b RD |
64 | return val |
65 | def HasBackgroundColour(self, *_args, **_kwargs): | |
5a2a9da2 | 66 | val = calendarc.wxCalendarDateAttr_HasBackgroundColour(self, *_args, **_kwargs) |
eedf876b RD |
67 | return val |
68 | def HasBorderColour(self, *_args, **_kwargs): | |
5a2a9da2 | 69 | val = calendarc.wxCalendarDateAttr_HasBorderColour(self, *_args, **_kwargs) |
eedf876b RD |
70 | return val |
71 | def HasFont(self, *_args, **_kwargs): | |
5a2a9da2 | 72 | val = calendarc.wxCalendarDateAttr_HasFont(self, *_args, **_kwargs) |
eedf876b RD |
73 | return val |
74 | def HasBorder(self, *_args, **_kwargs): | |
5a2a9da2 | 75 | val = calendarc.wxCalendarDateAttr_HasBorder(self, *_args, **_kwargs) |
eedf876b RD |
76 | return val |
77 | def IsHoliday(self, *_args, **_kwargs): | |
5a2a9da2 | 78 | val = calendarc.wxCalendarDateAttr_IsHoliday(self, *_args, **_kwargs) |
eedf876b RD |
79 | return val |
80 | def GetTextColour(self, *_args, **_kwargs): | |
5a2a9da2 | 81 | val = calendarc.wxCalendarDateAttr_GetTextColour(self, *_args, **_kwargs) |
c5943253 | 82 | if val: val = wxColourPtr(val) ; val.thisown = 1 |
eedf876b RD |
83 | return val |
84 | def GetBackgroundColour(self, *_args, **_kwargs): | |
5a2a9da2 | 85 | val = calendarc.wxCalendarDateAttr_GetBackgroundColour(self, *_args, **_kwargs) |
c5943253 | 86 | if val: val = wxColourPtr(val) ; val.thisown = 1 |
eedf876b RD |
87 | return val |
88 | def GetBorderColour(self, *_args, **_kwargs): | |
5a2a9da2 | 89 | val = calendarc.wxCalendarDateAttr_GetBorderColour(self, *_args, **_kwargs) |
c5943253 | 90 | if val: val = wxColourPtr(val) ; val.thisown = 1 |
eedf876b RD |
91 | return val |
92 | def GetFont(self, *_args, **_kwargs): | |
5a2a9da2 | 93 | val = calendarc.wxCalendarDateAttr_GetFont(self, *_args, **_kwargs) |
c5943253 | 94 | if val: val = wxFontPtr(val) ; val.thisown = 1 |
eedf876b RD |
95 | return val |
96 | def GetBorder(self, *_args, **_kwargs): | |
5a2a9da2 | 97 | val = calendarc.wxCalendarDateAttr_GetBorder(self, *_args, **_kwargs) |
eedf876b RD |
98 | return val |
99 | def __repr__(self): | |
5a2a9da2 | 100 | return "<%s.%s instance; proxy of C++ wxCalendarDateAttr instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this) |
eedf876b RD |
101 | class wxCalendarDateAttr(wxCalendarDateAttrPtr): |
102 | def __init__(self,*_args,**_kwargs): | |
5a2a9da2 | 103 | self.this = calendarc.new_wxCalendarDateAttr(*_args,**_kwargs) |
eedf876b RD |
104 | self.thisown = 1 |
105 | ||
106 | ||
107 | ||
108 | def wxCalendarDateAttrBorder(*_args,**_kwargs): | |
5a2a9da2 | 109 | val = wxCalendarDateAttrPtr(calendarc.new_wxCalendarDateAttrBorder(*_args,**_kwargs)) |
eedf876b RD |
110 | val.thisown = 1 |
111 | return val | |
112 | ||
113 | ||
f6bcfd97 BP |
114 | class wxCalendarEventPtr(wxCommandEventPtr): |
115 | def __init__(self,this): | |
116 | self.this = this | |
117 | self.thisown = 0 | |
118 | def GetDate(self, *_args, **_kwargs): | |
5a2a9da2 | 119 | val = calendarc.wxCalendarEvent_GetDate(self, *_args, **_kwargs) |
f6bcfd97 BP |
120 | if val: val = wxDateTimePtr(val) |
121 | return val | |
122 | def GetWeekDay(self, *_args, **_kwargs): | |
5a2a9da2 | 123 | val = calendarc.wxCalendarEvent_GetWeekDay(self, *_args, **_kwargs) |
f6bcfd97 BP |
124 | return val |
125 | def __repr__(self): | |
5a2a9da2 | 126 | return "<%s.%s instance; proxy of C++ wxCalendarEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this) |
f6bcfd97 BP |
127 | class wxCalendarEvent(wxCalendarEventPtr): |
128 | def __init__(self,*_args,**_kwargs): | |
5a2a9da2 | 129 | self.this = calendarc.new_wxCalendarEvent(*_args,**_kwargs) |
f6bcfd97 BP |
130 | self.thisown = 1 |
131 | ||
132 | ||
133 | ||
134 | ||
135 | class wxCalendarCtrlPtr(wxControlPtr): | |
136 | def __init__(self,this): | |
137 | self.this = this | |
138 | self.thisown = 0 | |
09f3d4e6 | 139 | def Create(self, *_args, **_kwargs): |
5a2a9da2 | 140 | val = calendarc.wxCalendarCtrl_Create(self, *_args, **_kwargs) |
09f3d4e6 | 141 | return val |
f6bcfd97 | 142 | def SetDate(self, *_args, **_kwargs): |
5a2a9da2 | 143 | val = calendarc.wxCalendarCtrl_SetDate(self, *_args, **_kwargs) |
f6bcfd97 BP |
144 | return val |
145 | def GetDate(self, *_args, **_kwargs): | |
5a2a9da2 | 146 | val = calendarc.wxCalendarCtrl_GetDate(self, *_args, **_kwargs) |
f6bcfd97 BP |
147 | if val: val = wxDateTimePtr(val) |
148 | return val | |
ab11ebfa | 149 | def SetLowerDateLimit(self, *_args, **_kwargs): |
5a2a9da2 | 150 | val = calendarc.wxCalendarCtrl_SetLowerDateLimit(self, *_args, **_kwargs) |
ab11ebfa RD |
151 | return val |
152 | def GetLowerDateLimit(self, *_args, **_kwargs): | |
5a2a9da2 | 153 | val = calendarc.wxCalendarCtrl_GetLowerDateLimit(self, *_args, **_kwargs) |
ab11ebfa RD |
154 | if val: val = wxDateTimePtr(val) |
155 | return val | |
156 | def SetUpperDateLimit(self, *_args, **_kwargs): | |
5a2a9da2 | 157 | val = calendarc.wxCalendarCtrl_SetUpperDateLimit(self, *_args, **_kwargs) |
ab11ebfa RD |
158 | return val |
159 | def GetUpperDateLimit(self, *_args, **_kwargs): | |
5a2a9da2 | 160 | val = calendarc.wxCalendarCtrl_GetUpperDateLimit(self, *_args, **_kwargs) |
ab11ebfa RD |
161 | if val: val = wxDateTimePtr(val) |
162 | return val | |
163 | def SetDateRange(self, *_args, **_kwargs): | |
5a2a9da2 | 164 | val = calendarc.wxCalendarCtrl_SetDateRange(self, *_args, **_kwargs) |
ab11ebfa | 165 | return val |
f6bcfd97 | 166 | def EnableYearChange(self, *_args, **_kwargs): |
5a2a9da2 | 167 | val = calendarc.wxCalendarCtrl_EnableYearChange(self, *_args, **_kwargs) |
f6bcfd97 BP |
168 | return val |
169 | def EnableMonthChange(self, *_args, **_kwargs): | |
5a2a9da2 | 170 | val = calendarc.wxCalendarCtrl_EnableMonthChange(self, *_args, **_kwargs) |
f6bcfd97 BP |
171 | return val |
172 | def EnableHolidayDisplay(self, *_args, **_kwargs): | |
5a2a9da2 | 173 | val = calendarc.wxCalendarCtrl_EnableHolidayDisplay(self, *_args, **_kwargs) |
f6bcfd97 BP |
174 | return val |
175 | def SetHeaderColours(self, *_args, **_kwargs): | |
5a2a9da2 | 176 | val = calendarc.wxCalendarCtrl_SetHeaderColours(self, *_args, **_kwargs) |
f6bcfd97 BP |
177 | return val |
178 | def GetHeaderColourFg(self, *_args, **_kwargs): | |
5a2a9da2 | 179 | val = calendarc.wxCalendarCtrl_GetHeaderColourFg(self, *_args, **_kwargs) |
c5943253 | 180 | if val: val = wxColourPtr(val) ; val.thisown = 1 |
f6bcfd97 BP |
181 | return val |
182 | def GetHeaderColourBg(self, *_args, **_kwargs): | |
5a2a9da2 | 183 | val = calendarc.wxCalendarCtrl_GetHeaderColourBg(self, *_args, **_kwargs) |
c5943253 | 184 | if val: val = wxColourPtr(val) ; val.thisown = 1 |
f6bcfd97 BP |
185 | return val |
186 | def SetHighlightColours(self, *_args, **_kwargs): | |
5a2a9da2 | 187 | val = calendarc.wxCalendarCtrl_SetHighlightColours(self, *_args, **_kwargs) |
f6bcfd97 BP |
188 | return val |
189 | def GetHighlightColourFg(self, *_args, **_kwargs): | |
5a2a9da2 | 190 | val = calendarc.wxCalendarCtrl_GetHighlightColourFg(self, *_args, **_kwargs) |
c5943253 | 191 | if val: val = wxColourPtr(val) ; val.thisown = 1 |
f6bcfd97 BP |
192 | return val |
193 | def GetHighlightColourBg(self, *_args, **_kwargs): | |
5a2a9da2 | 194 | val = calendarc.wxCalendarCtrl_GetHighlightColourBg(self, *_args, **_kwargs) |
c5943253 | 195 | if val: val = wxColourPtr(val) ; val.thisown = 1 |
f6bcfd97 BP |
196 | return val |
197 | def SetHolidayColours(self, *_args, **_kwargs): | |
5a2a9da2 | 198 | val = calendarc.wxCalendarCtrl_SetHolidayColours(self, *_args, **_kwargs) |
f6bcfd97 BP |
199 | return val |
200 | def GetHolidayColourFg(self, *_args, **_kwargs): | |
5a2a9da2 | 201 | val = calendarc.wxCalendarCtrl_GetHolidayColourFg(self, *_args, **_kwargs) |
c5943253 | 202 | if val: val = wxColourPtr(val) ; val.thisown = 1 |
f6bcfd97 BP |
203 | return val |
204 | def GetHolidayColourBg(self, *_args, **_kwargs): | |
5a2a9da2 | 205 | val = calendarc.wxCalendarCtrl_GetHolidayColourBg(self, *_args, **_kwargs) |
c5943253 | 206 | if val: val = wxColourPtr(val) ; val.thisown = 1 |
f6bcfd97 BP |
207 | return val |
208 | def GetAttr(self, *_args, **_kwargs): | |
5a2a9da2 | 209 | val = calendarc.wxCalendarCtrl_GetAttr(self, *_args, **_kwargs) |
eedf876b | 210 | if val: val = wxCalendarDateAttrPtr(val) |
f6bcfd97 BP |
211 | return val |
212 | def SetAttr(self, *_args, **_kwargs): | |
5a2a9da2 | 213 | val = calendarc.wxCalendarCtrl_SetAttr(self, *_args, **_kwargs) |
f6bcfd97 BP |
214 | return val |
215 | def SetHoliday(self, *_args, **_kwargs): | |
5a2a9da2 | 216 | val = calendarc.wxCalendarCtrl_SetHoliday(self, *_args, **_kwargs) |
f6bcfd97 BP |
217 | return val |
218 | def ResetAttr(self, *_args, **_kwargs): | |
5a2a9da2 | 219 | val = calendarc.wxCalendarCtrl_ResetAttr(self, *_args, **_kwargs) |
f6bcfd97 BP |
220 | return val |
221 | def HitTest(self, *_args, **_kwargs): | |
5a2a9da2 | 222 | val = calendarc.wxCalendarCtrl_HitTest(self, *_args, **_kwargs) |
f6bcfd97 | 223 | return val |
ab11ebfa | 224 | def Enable(self, *_args, **_kwargs): |
5a2a9da2 | 225 | val = calendarc.wxCalendarCtrl_Enable(self, *_args, **_kwargs) |
ab11ebfa RD |
226 | return val |
227 | def Show(self, *_args, **_kwargs): | |
5a2a9da2 | 228 | val = calendarc.wxCalendarCtrl_Show(self, *_args, **_kwargs) |
ab11ebfa | 229 | return val |
f6bcfd97 | 230 | def __repr__(self): |
5a2a9da2 | 231 | return "<%s.%s instance; proxy of C++ wxCalendarCtrl instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this) |
f6bcfd97 BP |
232 | class wxCalendarCtrl(wxCalendarCtrlPtr): |
233 | def __init__(self,*_args,**_kwargs): | |
5a2a9da2 | 234 | self.this = calendarc.new_wxCalendarCtrl(*_args,**_kwargs) |
f6bcfd97 | 235 | self.thisown = 1 |
0122b7e3 | 236 | self._setOORInfo(self) |
f6bcfd97 BP |
237 | |
238 | ||
239 | ||
09f3d4e6 | 240 | def wxPreCalendarCtrl(*_args,**_kwargs): |
5a2a9da2 | 241 | val = wxCalendarCtrlPtr(calendarc.new_wxPreCalendarCtrl(*_args,**_kwargs)) |
09f3d4e6 | 242 | val.thisown = 1 |
17c0e08c | 243 | val._setOORInfo(val) |
09f3d4e6 RD |
244 | return val |
245 | ||
f6bcfd97 BP |
246 | |
247 | ||
248 | ||
249 | #-------------- FUNCTION WRAPPERS ------------------ | |
250 | ||
251 | ||
252 | ||
253 | #-------------- VARIABLE WRAPPERS ------------------ | |
254 | ||
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 | |
ab11ebfa RD |
260 | wxCAL_SEQUENTIAL_MONTH_SELECTION = calendarc.wxCAL_SEQUENTIAL_MONTH_SELECTION |
261 | wxCAL_SHOW_SURROUNDING_WEEKS = calendarc.wxCAL_SHOW_SURROUNDING_WEEKS | |
f6bcfd97 BP |
262 | wxCAL_HITTEST_NOWHERE = calendarc.wxCAL_HITTEST_NOWHERE |
263 | wxCAL_HITTEST_HEADER = calendarc.wxCAL_HITTEST_HEADER | |
264 | wxCAL_HITTEST_DAY = calendarc.wxCAL_HITTEST_DAY | |
eedf876b RD |
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 | |
f6bcfd97 BP |
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 | |
277 | ||
278 | ||
279 | #-------------- USER INCLUDE ----------------------- | |
280 | ||
281 | ||
282 | # Stuff these names into the wx namespace so wxPyConstructObject can find them | |
283 | ||
284 | wx.wxCalendarEventPtr = wxCalendarEventPtr | |
7e50db3f | 285 | wx.wxCalendarCtrlPtr = wxCalendarCtrlPtr |