1 # This file was created automatically by SWIG.
10 from clip_dnd
import *
12 from controls
import *
19 def EVT_CALENDAR(win
, id, fn
):
20 win
.Connect(id, -1, wxEVT_CALENDAR_DOUBLECLICKED
, fn
)
22 def EVT_CALENDAR_SEL_CHANGED(win
, id, fn
):
23 win
.Connect(id, -1, wxEVT_CALENDAR_SEL_CHANGED
, fn
)
25 def EVT_CALENDAR_DAY(win
, id, fn
):
26 win
.Connect(id, -1, wxEVT_CALENDAR_DAY_CHANGED
, fn
)
28 def EVT_CALENDAR_MONTH(win
, id, fn
):
29 win
.Connect(id, -1, wxEVT_CALENDAR_MONTH_CHANGED
, fn
)
31 def EVT_CALENDAR_YEAR(win
, id, fn
):
32 win
.Connect(id, -1, wxEVT_CALENDAR_YEAR_CHANGED
, fn
)
34 def EVT_CALENDAR_WEEKDAY_CLICKED(win
, id, fn
):
35 win
.Connect(id, -1, wxEVT_CALENDAR_WEEKDAY_CLICKED
, fn
)
38 class wxCalendarDateAttrPtr
:
39 def __init__(self
,this
):
42 def SetTextColour(self
, *_args
, **_kwargs
):
43 val
= apply(calendarc
.wxCalendarDateAttr_SetTextColour
,(self
,) + _args
, _kwargs
)
45 def SetBackgroundColour(self
, *_args
, **_kwargs
):
46 val
= apply(calendarc
.wxCalendarDateAttr_SetBackgroundColour
,(self
,) + _args
, _kwargs
)
48 def SetBorderColour(self
, *_args
, **_kwargs
):
49 val
= apply(calendarc
.wxCalendarDateAttr_SetBorderColour
,(self
,) + _args
, _kwargs
)
51 def SetFont(self
, *_args
, **_kwargs
):
52 val
= apply(calendarc
.wxCalendarDateAttr_SetFont
,(self
,) + _args
, _kwargs
)
54 def SetBorder(self
, *_args
, **_kwargs
):
55 val
= apply(calendarc
.wxCalendarDateAttr_SetBorder
,(self
,) + _args
, _kwargs
)
57 def SetHoliday(self
, *_args
, **_kwargs
):
58 val
= apply(calendarc
.wxCalendarDateAttr_SetHoliday
,(self
,) + _args
, _kwargs
)
60 def HasTextColour(self
, *_args
, **_kwargs
):
61 val
= apply(calendarc
.wxCalendarDateAttr_HasTextColour
,(self
,) + _args
, _kwargs
)
63 def HasBackgroundColour(self
, *_args
, **_kwargs
):
64 val
= apply(calendarc
.wxCalendarDateAttr_HasBackgroundColour
,(self
,) + _args
, _kwargs
)
66 def HasBorderColour(self
, *_args
, **_kwargs
):
67 val
= apply(calendarc
.wxCalendarDateAttr_HasBorderColour
,(self
,) + _args
, _kwargs
)
69 def HasFont(self
, *_args
, **_kwargs
):
70 val
= apply(calendarc
.wxCalendarDateAttr_HasFont
,(self
,) + _args
, _kwargs
)
72 def HasBorder(self
, *_args
, **_kwargs
):
73 val
= apply(calendarc
.wxCalendarDateAttr_HasBorder
,(self
,) + _args
, _kwargs
)
75 def IsHoliday(self
, *_args
, **_kwargs
):
76 val
= apply(calendarc
.wxCalendarDateAttr_IsHoliday
,(self
,) + _args
, _kwargs
)
78 def GetTextColour(self
, *_args
, **_kwargs
):
79 val
= apply(calendarc
.wxCalendarDateAttr_GetTextColour
,(self
,) + _args
, _kwargs
)
80 if val
: val
= wxColourPtr(val
)
82 def GetBackgroundColour(self
, *_args
, **_kwargs
):
83 val
= apply(calendarc
.wxCalendarDateAttr_GetBackgroundColour
,(self
,) + _args
, _kwargs
)
84 if val
: val
= wxColourPtr(val
)
86 def GetBorderColour(self
, *_args
, **_kwargs
):
87 val
= apply(calendarc
.wxCalendarDateAttr_GetBorderColour
,(self
,) + _args
, _kwargs
)
88 if val
: val
= wxColourPtr(val
)
90 def GetFont(self
, *_args
, **_kwargs
):
91 val
= apply(calendarc
.wxCalendarDateAttr_GetFont
,(self
,) + _args
, _kwargs
)
92 if val
: val
= wxFontPtr(val
)
94 def GetBorder(self
, *_args
, **_kwargs
):
95 val
= apply(calendarc
.wxCalendarDateAttr_GetBorder
,(self
,) + _args
, _kwargs
)
98 return "<C wxCalendarDateAttr instance at %s>" % (self
.this
,)
99 class wxCalendarDateAttr(wxCalendarDateAttrPtr
):
100 def __init__(self
,*_args
,**_kwargs
):
101 self
.this
= apply(calendarc
.new_wxCalendarDateAttr
,_args
,_kwargs
)
106 def wxCalendarDateAttrBorder(*_args
,**_kwargs
):
107 val
= wxCalendarDateAttrPtr(apply(calendarc
.new_wxCalendarDateAttrBorder
,_args
,_kwargs
))
112 class wxCalendarEventPtr(wxCommandEventPtr
):
113 def __init__(self
,this
):
116 def GetDate(self
, *_args
, **_kwargs
):
117 val
= apply(calendarc
.wxCalendarEvent_GetDate
,(self
,) + _args
, _kwargs
)
118 if val
: val
= wxDateTimePtr(val
)
120 def GetWeekDay(self
, *_args
, **_kwargs
):
121 val
= apply(calendarc
.wxCalendarEvent_GetWeekDay
,(self
,) + _args
, _kwargs
)
124 return "<C wxCalendarEvent instance at %s>" % (self
.this
,)
125 class wxCalendarEvent(wxCalendarEventPtr
):
126 def __init__(self
,*_args
,**_kwargs
):
127 self
.this
= apply(calendarc
.new_wxCalendarEvent
,_args
,_kwargs
)
133 class wxCalendarCtrlPtr(wxControlPtr
):
134 def __init__(self
,this
):
137 def Create(self
, *_args
, **_kwargs
):
138 val
= apply(calendarc
.wxCalendarCtrl_Create
,(self
,) + _args
, _kwargs
)
140 def SetDate(self
, *_args
, **_kwargs
):
141 val
= apply(calendarc
.wxCalendarCtrl_SetDate
,(self
,) + _args
, _kwargs
)
143 def GetDate(self
, *_args
, **_kwargs
):
144 val
= apply(calendarc
.wxCalendarCtrl_GetDate
,(self
,) + _args
, _kwargs
)
145 if val
: val
= wxDateTimePtr(val
)
147 def EnableYearChange(self
, *_args
, **_kwargs
):
148 val
= apply(calendarc
.wxCalendarCtrl_EnableYearChange
,(self
,) + _args
, _kwargs
)
150 def EnableMonthChange(self
, *_args
, **_kwargs
):
151 val
= apply(calendarc
.wxCalendarCtrl_EnableMonthChange
,(self
,) + _args
, _kwargs
)
153 def EnableHolidayDisplay(self
, *_args
, **_kwargs
):
154 val
= apply(calendarc
.wxCalendarCtrl_EnableHolidayDisplay
,(self
,) + _args
, _kwargs
)
156 def SetHeaderColours(self
, *_args
, **_kwargs
):
157 val
= apply(calendarc
.wxCalendarCtrl_SetHeaderColours
,(self
,) + _args
, _kwargs
)
159 def GetHeaderColourFg(self
, *_args
, **_kwargs
):
160 val
= apply(calendarc
.wxCalendarCtrl_GetHeaderColourFg
,(self
,) + _args
, _kwargs
)
161 if val
: val
= wxColourPtr(val
)
163 def GetHeaderColourBg(self
, *_args
, **_kwargs
):
164 val
= apply(calendarc
.wxCalendarCtrl_GetHeaderColourBg
,(self
,) + _args
, _kwargs
)
165 if val
: val
= wxColourPtr(val
)
167 def SetHighlightColours(self
, *_args
, **_kwargs
):
168 val
= apply(calendarc
.wxCalendarCtrl_SetHighlightColours
,(self
,) + _args
, _kwargs
)
170 def GetHighlightColourFg(self
, *_args
, **_kwargs
):
171 val
= apply(calendarc
.wxCalendarCtrl_GetHighlightColourFg
,(self
,) + _args
, _kwargs
)
172 if val
: val
= wxColourPtr(val
)
174 def GetHighlightColourBg(self
, *_args
, **_kwargs
):
175 val
= apply(calendarc
.wxCalendarCtrl_GetHighlightColourBg
,(self
,) + _args
, _kwargs
)
176 if val
: val
= wxColourPtr(val
)
178 def SetHolidayColours(self
, *_args
, **_kwargs
):
179 val
= apply(calendarc
.wxCalendarCtrl_SetHolidayColours
,(self
,) + _args
, _kwargs
)
181 def GetHolidayColourFg(self
, *_args
, **_kwargs
):
182 val
= apply(calendarc
.wxCalendarCtrl_GetHolidayColourFg
,(self
,) + _args
, _kwargs
)
183 if val
: val
= wxColourPtr(val
)
185 def GetHolidayColourBg(self
, *_args
, **_kwargs
):
186 val
= apply(calendarc
.wxCalendarCtrl_GetHolidayColourBg
,(self
,) + _args
, _kwargs
)
187 if val
: val
= wxColourPtr(val
)
189 def GetAttr(self
, *_args
, **_kwargs
):
190 val
= apply(calendarc
.wxCalendarCtrl_GetAttr
,(self
,) + _args
, _kwargs
)
191 if val
: val
= wxCalendarDateAttrPtr(val
)
193 def SetAttr(self
, *_args
, **_kwargs
):
194 val
= apply(calendarc
.wxCalendarCtrl_SetAttr
,(self
,) + _args
, _kwargs
)
196 def SetHoliday(self
, *_args
, **_kwargs
):
197 val
= apply(calendarc
.wxCalendarCtrl_SetHoliday
,(self
,) + _args
, _kwargs
)
199 def ResetAttr(self
, *_args
, **_kwargs
):
200 val
= apply(calendarc
.wxCalendarCtrl_ResetAttr
,(self
,) + _args
, _kwargs
)
202 def HitTest(self
, *_args
, **_kwargs
):
203 val
= apply(calendarc
.wxCalendarCtrl_HitTest
,(self
,) + _args
, _kwargs
)
206 return "<C wxCalendarCtrl instance at %s>" % (self
.this
,)
207 class wxCalendarCtrl(wxCalendarCtrlPtr
):
208 def __init__(self
,*_args
,**_kwargs
):
209 self
.this
= apply(calendarc
.new_wxCalendarCtrl
,_args
,_kwargs
)
211 self
._setOORInfo
(self
)
215 def wxPreCalendarCtrl(*_args
,**_kwargs
):
216 val
= wxCalendarCtrlPtr(apply(calendarc
.new_wxPreCalendarCtrl
,_args
,_kwargs
))
218 val
._setOORInfo
(self
)
224 #-------------- FUNCTION WRAPPERS ------------------
228 #-------------- VARIABLE WRAPPERS ------------------
230 wxCAL_SUNDAY_FIRST
= calendarc
.wxCAL_SUNDAY_FIRST
231 wxCAL_MONDAY_FIRST
= calendarc
.wxCAL_MONDAY_FIRST
232 wxCAL_SHOW_HOLIDAYS
= calendarc
.wxCAL_SHOW_HOLIDAYS
233 wxCAL_NO_YEAR_CHANGE
= calendarc
.wxCAL_NO_YEAR_CHANGE
234 wxCAL_NO_MONTH_CHANGE
= calendarc
.wxCAL_NO_MONTH_CHANGE
235 wxCAL_HITTEST_NOWHERE
= calendarc
.wxCAL_HITTEST_NOWHERE
236 wxCAL_HITTEST_HEADER
= calendarc
.wxCAL_HITTEST_HEADER
237 wxCAL_HITTEST_DAY
= calendarc
.wxCAL_HITTEST_DAY
238 wxCAL_BORDER_NONE
= calendarc
.wxCAL_BORDER_NONE
239 wxCAL_BORDER_SQUARE
= calendarc
.wxCAL_BORDER_SQUARE
240 wxCAL_BORDER_ROUND
= calendarc
.wxCAL_BORDER_ROUND
241 wxEVT_CALENDAR_DOUBLECLICKED
= calendarc
.wxEVT_CALENDAR_DOUBLECLICKED
242 wxEVT_CALENDAR_SEL_CHANGED
= calendarc
.wxEVT_CALENDAR_SEL_CHANGED
243 wxEVT_CALENDAR_DAY_CHANGED
= calendarc
.wxEVT_CALENDAR_DAY_CHANGED
244 wxEVT_CALENDAR_MONTH_CHANGED
= calendarc
.wxEVT_CALENDAR_MONTH_CHANGED
245 wxEVT_CALENDAR_YEAR_CHANGED
= calendarc
.wxEVT_CALENDAR_YEAR_CHANGED
246 wxEVT_CALENDAR_WEEKDAY_CLICKED
= calendarc
.wxEVT_CALENDAR_WEEKDAY_CLICKED
249 #-------------- USER INCLUDE -----------------------
252 # Stuff these names into the wx namespace so wxPyConstructObject can find them
254 wx
.wxCalendarEventPtr
= wxCalendarEventPtr