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