]>
Commit | Line | Data |
---|---|---|
f6bcfd97 | 1 | # This file was created automatically by SWIG. |
d14a1e28 RD |
2 | # Don't modify this file, modify the SWIG interface instead. |
3 | ||
4 | import _calendar | |
5 | ||
6 | import misc | |
7 | import core | |
8 | wx = core | |
9 | CAL_SUNDAY_FIRST = _calendar.CAL_SUNDAY_FIRST | |
10 | CAL_MONDAY_FIRST = _calendar.CAL_MONDAY_FIRST | |
11 | CAL_SHOW_HOLIDAYS = _calendar.CAL_SHOW_HOLIDAYS | |
12 | CAL_NO_YEAR_CHANGE = _calendar.CAL_NO_YEAR_CHANGE | |
13 | CAL_NO_MONTH_CHANGE = _calendar.CAL_NO_MONTH_CHANGE | |
14 | CAL_SEQUENTIAL_MONTH_SELECTION = _calendar.CAL_SEQUENTIAL_MONTH_SELECTION | |
15 | CAL_SHOW_SURROUNDING_WEEKS = _calendar.CAL_SHOW_SURROUNDING_WEEKS | |
16 | CAL_HITTEST_NOWHERE = _calendar.CAL_HITTEST_NOWHERE | |
17 | CAL_HITTEST_HEADER = _calendar.CAL_HITTEST_HEADER | |
18 | CAL_HITTEST_DAY = _calendar.CAL_HITTEST_DAY | |
19 | CAL_HITTEST_INCMONTH = _calendar.CAL_HITTEST_INCMONTH | |
20 | CAL_HITTEST_DECMONTH = _calendar.CAL_HITTEST_DECMONTH | |
21 | CAL_HITTEST_SURROUNDING_WEEK = _calendar.CAL_HITTEST_SURROUNDING_WEEK | |
22 | CAL_BORDER_NONE = _calendar.CAL_BORDER_NONE | |
23 | CAL_BORDER_SQUARE = _calendar.CAL_BORDER_SQUARE | |
24 | CAL_BORDER_ROUND = _calendar.CAL_BORDER_ROUND | |
25 | class CalendarDateAttr(object): | |
e811c8ce RD |
26 | """""" |
27 | def __repr__(self): | |
28 | return "<%s.%s; proxy of C++ wxCalendarDateAttr instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
d14a1e28 | 29 | def __init__(self, *args, **kwargs): |
e811c8ce RD |
30 | """__init__(wxColour colText, wxColour colBack=wxNullColour, wxColour colBorder=wxNullColour, |
31 | wxFont font=wxNullFont, | |
32 | wxCalendarDateBorder border=CAL_BORDER_NONE) -> CalendarDateAttr""" | |
d14a1e28 RD |
33 | newobj = _calendar.new_CalendarDateAttr(*args, **kwargs) |
34 | self.this = newobj.this | |
f6bcfd97 | 35 | self.thisown = 1 |
d14a1e28 | 36 | del newobj.thisown |
e811c8ce RD |
37 | def SetTextColour(*args, **kwargs): |
38 | """SetTextColour(wxColour colText)""" | |
39 | return _calendar.CalendarDateAttr_SetTextColour(*args, **kwargs) | |
40 | ||
41 | def SetBackgroundColour(*args, **kwargs): | |
42 | """SetBackgroundColour(wxColour colBack)""" | |
43 | return _calendar.CalendarDateAttr_SetBackgroundColour(*args, **kwargs) | |
44 | ||
45 | def SetBorderColour(*args, **kwargs): | |
46 | """SetBorderColour(wxColour col)""" | |
47 | return _calendar.CalendarDateAttr_SetBorderColour(*args, **kwargs) | |
48 | ||
49 | def SetFont(*args, **kwargs): | |
50 | """SetFont(wxFont font)""" | |
51 | return _calendar.CalendarDateAttr_SetFont(*args, **kwargs) | |
52 | ||
53 | def SetBorder(*args, **kwargs): | |
54 | """SetBorder(wxCalendarDateBorder border)""" | |
55 | return _calendar.CalendarDateAttr_SetBorder(*args, **kwargs) | |
56 | ||
57 | def SetHoliday(*args, **kwargs): | |
58 | """SetHoliday(bool holiday)""" | |
59 | return _calendar.CalendarDateAttr_SetHoliday(*args, **kwargs) | |
60 | ||
61 | def HasTextColour(*args, **kwargs): | |
62 | """HasTextColour() -> bool""" | |
63 | return _calendar.CalendarDateAttr_HasTextColour(*args, **kwargs) | |
64 | ||
65 | def HasBackgroundColour(*args, **kwargs): | |
66 | """HasBackgroundColour() -> bool""" | |
67 | return _calendar.CalendarDateAttr_HasBackgroundColour(*args, **kwargs) | |
68 | ||
69 | def HasBorderColour(*args, **kwargs): | |
70 | """HasBorderColour() -> bool""" | |
71 | return _calendar.CalendarDateAttr_HasBorderColour(*args, **kwargs) | |
72 | ||
73 | def HasFont(*args, **kwargs): | |
74 | """HasFont() -> bool""" | |
75 | return _calendar.CalendarDateAttr_HasFont(*args, **kwargs) | |
76 | ||
77 | def HasBorder(*args, **kwargs): | |
78 | """HasBorder() -> bool""" | |
79 | return _calendar.CalendarDateAttr_HasBorder(*args, **kwargs) | |
80 | ||
81 | def IsHoliday(*args, **kwargs): | |
82 | """IsHoliday() -> bool""" | |
83 | return _calendar.CalendarDateAttr_IsHoliday(*args, **kwargs) | |
84 | ||
85 | def GetTextColour(*args, **kwargs): | |
86 | """GetTextColour() -> wxColour""" | |
87 | return _calendar.CalendarDateAttr_GetTextColour(*args, **kwargs) | |
88 | ||
89 | def GetBackgroundColour(*args, **kwargs): | |
90 | """GetBackgroundColour() -> wxColour""" | |
91 | return _calendar.CalendarDateAttr_GetBackgroundColour(*args, **kwargs) | |
92 | ||
93 | def GetBorderColour(*args, **kwargs): | |
94 | """GetBorderColour() -> wxColour""" | |
95 | return _calendar.CalendarDateAttr_GetBorderColour(*args, **kwargs) | |
96 | ||
97 | def GetFont(*args, **kwargs): | |
98 | """GetFont() -> wxFont""" | |
99 | return _calendar.CalendarDateAttr_GetFont(*args, **kwargs) | |
100 | ||
101 | def GetBorder(*args, **kwargs): | |
102 | """GetBorder() -> wxCalendarDateBorder""" | |
103 | return _calendar.CalendarDateAttr_GetBorder(*args, **kwargs) | |
104 | ||
f6bcfd97 | 105 | |
d14a1e28 RD |
106 | class CalendarDateAttrPtr(CalendarDateAttr): |
107 | def __init__(self, this): | |
108 | self.this = this | |
109 | if not hasattr(self,"thisown"): self.thisown = 0 | |
110 | self.__class__ = CalendarDateAttr | |
111 | _calendar.CalendarDateAttr_swigregister(CalendarDateAttrPtr) | |
f6bcfd97 | 112 | |
d14a1e28 | 113 | def CalendarDateAttrBorder(*args, **kwargs): |
e811c8ce | 114 | """CalendarDateAttrBorder(wxCalendarDateBorder border, wxColour colBorder=wxNullColour) -> CalendarDateAttr""" |
d14a1e28 | 115 | val = _calendar.new_CalendarDateAttrBorder(*args, **kwargs) |
f6bcfd97 BP |
116 | val.thisown = 1 |
117 | return val | |
118 | ||
d14a1e28 | 119 | class CalendarEvent(core.CommandEvent): |
e811c8ce RD |
120 | """""" |
121 | def __repr__(self): | |
122 | return "<%s.%s; proxy of C++ wxCalendarEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
d14a1e28 | 123 | def __init__(self, *args, **kwargs): |
e811c8ce | 124 | """__init__(CalendarCtrl cal, wxEventType type) -> CalendarEvent""" |
d14a1e28 RD |
125 | newobj = _calendar.new_CalendarEvent(*args, **kwargs) |
126 | self.this = newobj.this | |
f6bcfd97 | 127 | self.thisown = 1 |
d14a1e28 | 128 | del newobj.thisown |
e811c8ce RD |
129 | def GetDate(*args, **kwargs): |
130 | """GetDate() -> DateTime""" | |
131 | return _calendar.CalendarEvent_GetDate(*args, **kwargs) | |
132 | ||
133 | def GetWeekDay(*args, **kwargs): | |
134 | """GetWeekDay() -> wxDateTime::WeekDay""" | |
135 | return _calendar.CalendarEvent_GetWeekDay(*args, **kwargs) | |
136 | ||
f6bcfd97 | 137 | |
d14a1e28 RD |
138 | class CalendarEventPtr(CalendarEvent): |
139 | def __init__(self, this): | |
f6bcfd97 | 140 | self.this = this |
d14a1e28 RD |
141 | if not hasattr(self,"thisown"): self.thisown = 0 |
142 | self.__class__ = CalendarEvent | |
143 | _calendar.CalendarEvent_swigregister(CalendarEventPtr) | |
144 | ||
145 | wxEVT_CALENDAR_DOUBLECLICKED = _calendar.wxEVT_CALENDAR_DOUBLECLICKED | |
146 | wxEVT_CALENDAR_SEL_CHANGED = _calendar.wxEVT_CALENDAR_SEL_CHANGED | |
147 | wxEVT_CALENDAR_DAY_CHANGED = _calendar.wxEVT_CALENDAR_DAY_CHANGED | |
148 | wxEVT_CALENDAR_MONTH_CHANGED = _calendar.wxEVT_CALENDAR_MONTH_CHANGED | |
149 | wxEVT_CALENDAR_YEAR_CHANGED = _calendar.wxEVT_CALENDAR_YEAR_CHANGED | |
150 | wxEVT_CALENDAR_WEEKDAY_CLICKED = _calendar.wxEVT_CALENDAR_WEEKDAY_CLICKED | |
151 | EVT_CALENDAR = wx.PyEventBinder( wxEVT_CALENDAR_DOUBLECLICKED, 1) | |
152 | EVT_CALENDAR_SEL_CHANGED = wx.PyEventBinder( wxEVT_CALENDAR_SEL_CHANGED, 1) | |
153 | EVT_CALENDAR_DAY = wx.PyEventBinder( wxEVT_CALENDAR_DAY_CHANGED, 1) | |
154 | EVT_CALENDAR_MONTH = wx.PyEventBinder( wxEVT_CALENDAR_MONTH_CHANGED, 1) | |
155 | EVT_CALENDAR_YEAR = wx.PyEventBinder( wxEVT_CALENDAR_YEAR_CHANGED, 1) | |
156 | EVT_CALENDAR_WEEKDAY_CLICKED = wx.PyEventBinder( wxEVT_CALENDAR_WEEKDAY_CLICKED, 1) | |
157 | ||
158 | class CalendarCtrl(core.Control): | |
e811c8ce RD |
159 | """""" |
160 | def __repr__(self): | |
161 | return "<%s.%s; proxy of C++ wxCalendarCtrl instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
d14a1e28 | 162 | def __init__(self, *args, **kwargs): |
e811c8ce RD |
163 | """__init__(Window parent, int id, DateTime date=wxDefaultDateTime, |
164 | Point pos=DefaultPosition, Size size=DefaultSize, | |
165 | long style=wxCAL_SHOW_HOLIDAYS|wxWANTS_CHARS, | |
166 | wxString name=wxPyCalendarNameStr) -> CalendarCtrl""" | |
d14a1e28 RD |
167 | newobj = _calendar.new_CalendarCtrl(*args, **kwargs) |
168 | self.this = newobj.this | |
f6bcfd97 | 169 | self.thisown = 1 |
d14a1e28 | 170 | del newobj.thisown |
0220cbc1 | 171 | self._setOORInfo(self) |
e811c8ce RD |
172 | |
173 | def Create(*args, **kwargs): | |
174 | """Create(Window parent, int id, DateTime date=wxDefaultDateTime, | |
175 | Point pos=DefaultPosition, Size size=DefaultSize, | |
176 | long style=wxCAL_SHOW_HOLIDAYS|wxWANTS_CHARS, | |
177 | wxString name=wxPyCalendarNameStr) -> bool""" | |
178 | return _calendar.CalendarCtrl_Create(*args, **kwargs) | |
179 | ||
180 | def SetDate(*args, **kwargs): | |
181 | """SetDate(DateTime date)""" | |
182 | return _calendar.CalendarCtrl_SetDate(*args, **kwargs) | |
183 | ||
184 | def GetDate(*args, **kwargs): | |
185 | """GetDate() -> DateTime""" | |
186 | return _calendar.CalendarCtrl_GetDate(*args, **kwargs) | |
187 | ||
188 | def SetLowerDateLimit(*args, **kwargs): | |
189 | """SetLowerDateLimit(DateTime date=wxDefaultDateTime) -> bool""" | |
190 | return _calendar.CalendarCtrl_SetLowerDateLimit(*args, **kwargs) | |
191 | ||
192 | def GetLowerDateLimit(*args, **kwargs): | |
193 | """GetLowerDateLimit() -> DateTime""" | |
194 | return _calendar.CalendarCtrl_GetLowerDateLimit(*args, **kwargs) | |
195 | ||
196 | def SetUpperDateLimit(*args, **kwargs): | |
197 | """SetUpperDateLimit(DateTime date=wxDefaultDateTime) -> bool""" | |
198 | return _calendar.CalendarCtrl_SetUpperDateLimit(*args, **kwargs) | |
199 | ||
200 | def GetUpperDateLimit(*args, **kwargs): | |
201 | """GetUpperDateLimit() -> DateTime""" | |
202 | return _calendar.CalendarCtrl_GetUpperDateLimit(*args, **kwargs) | |
203 | ||
204 | def SetDateRange(*args, **kwargs): | |
205 | """SetDateRange(DateTime lowerdate=wxDefaultDateTime, DateTime upperdate=wxDefaultDateTime) -> bool""" | |
206 | return _calendar.CalendarCtrl_SetDateRange(*args, **kwargs) | |
207 | ||
208 | def EnableYearChange(*args, **kwargs): | |
209 | """EnableYearChange(bool enable=True)""" | |
210 | return _calendar.CalendarCtrl_EnableYearChange(*args, **kwargs) | |
211 | ||
212 | def EnableMonthChange(*args, **kwargs): | |
213 | """EnableMonthChange(bool enable=True)""" | |
214 | return _calendar.CalendarCtrl_EnableMonthChange(*args, **kwargs) | |
215 | ||
216 | def EnableHolidayDisplay(*args, **kwargs): | |
217 | """EnableHolidayDisplay(bool display=True)""" | |
218 | return _calendar.CalendarCtrl_EnableHolidayDisplay(*args, **kwargs) | |
219 | ||
220 | def SetHeaderColours(*args, **kwargs): | |
221 | """SetHeaderColours(wxColour colFg, wxColour colBg)""" | |
222 | return _calendar.CalendarCtrl_SetHeaderColours(*args, **kwargs) | |
223 | ||
224 | def GetHeaderColourFg(*args, **kwargs): | |
225 | """GetHeaderColourFg() -> wxColour""" | |
226 | return _calendar.CalendarCtrl_GetHeaderColourFg(*args, **kwargs) | |
227 | ||
228 | def GetHeaderColourBg(*args, **kwargs): | |
229 | """GetHeaderColourBg() -> wxColour""" | |
230 | return _calendar.CalendarCtrl_GetHeaderColourBg(*args, **kwargs) | |
231 | ||
232 | def SetHighlightColours(*args, **kwargs): | |
233 | """SetHighlightColours(wxColour colFg, wxColour colBg)""" | |
234 | return _calendar.CalendarCtrl_SetHighlightColours(*args, **kwargs) | |
235 | ||
236 | def GetHighlightColourFg(*args, **kwargs): | |
237 | """GetHighlightColourFg() -> wxColour""" | |
238 | return _calendar.CalendarCtrl_GetHighlightColourFg(*args, **kwargs) | |
239 | ||
240 | def GetHighlightColourBg(*args, **kwargs): | |
241 | """GetHighlightColourBg() -> wxColour""" | |
242 | return _calendar.CalendarCtrl_GetHighlightColourBg(*args, **kwargs) | |
243 | ||
244 | def SetHolidayColours(*args, **kwargs): | |
245 | """SetHolidayColours(wxColour colFg, wxColour colBg)""" | |
246 | return _calendar.CalendarCtrl_SetHolidayColours(*args, **kwargs) | |
247 | ||
248 | def GetHolidayColourFg(*args, **kwargs): | |
249 | """GetHolidayColourFg() -> wxColour""" | |
250 | return _calendar.CalendarCtrl_GetHolidayColourFg(*args, **kwargs) | |
251 | ||
252 | def GetHolidayColourBg(*args, **kwargs): | |
253 | """GetHolidayColourBg() -> wxColour""" | |
254 | return _calendar.CalendarCtrl_GetHolidayColourBg(*args, **kwargs) | |
255 | ||
256 | def GetAttr(*args, **kwargs): | |
257 | """GetAttr(size_t day) -> CalendarDateAttr""" | |
258 | return _calendar.CalendarCtrl_GetAttr(*args, **kwargs) | |
259 | ||
260 | def SetAttr(*args, **kwargs): | |
261 | """SetAttr(size_t day, CalendarDateAttr attr)""" | |
262 | return _calendar.CalendarCtrl_SetAttr(*args, **kwargs) | |
263 | ||
264 | def SetHoliday(*args, **kwargs): | |
265 | """SetHoliday(size_t day)""" | |
266 | return _calendar.CalendarCtrl_SetHoliday(*args, **kwargs) | |
267 | ||
268 | def ResetAttr(*args, **kwargs): | |
269 | """ResetAttr(size_t day)""" | |
270 | return _calendar.CalendarCtrl_ResetAttr(*args, **kwargs) | |
271 | ||
272 | def HitTest(*args, **kwargs): | |
273 | """HitTest(Point pos, DateTime date=None, wxDateTime::WeekDay wd=None) -> wxCalendarHitTestResult""" | |
274 | return _calendar.CalendarCtrl_HitTest(*args, **kwargs) | |
275 | ||
276 | def Enable(*args, **kwargs): | |
277 | """Enable(bool enable=True) -> bool""" | |
278 | return _calendar.CalendarCtrl_Enable(*args, **kwargs) | |
279 | ||
280 | def Show(*args, **kwargs): | |
281 | """Show(bool show=True) -> bool""" | |
282 | return _calendar.CalendarCtrl_Show(*args, **kwargs) | |
283 | ||
f6bcfd97 | 284 | |
d14a1e28 RD |
285 | class CalendarCtrlPtr(CalendarCtrl): |
286 | def __init__(self, this): | |
287 | self.this = this | |
288 | if not hasattr(self,"thisown"): self.thisown = 0 | |
289 | self.__class__ = CalendarCtrl | |
290 | _calendar.CalendarCtrl_swigregister(CalendarCtrlPtr) | |
f6bcfd97 | 291 | |
d14a1e28 | 292 | def PreCalendarCtrl(*args, **kwargs): |
e811c8ce | 293 | """PreCalendarCtrl() -> CalendarCtrl""" |
d14a1e28 | 294 | val = _calendar.new_PreCalendarCtrl(*args, **kwargs) |
aa2a5b86 RD |
295 | val.thisown = 1 |
296 | return val | |
297 | ||
f6bcfd97 | 298 |