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 wxCalendarEventPtr(wxCommandEventPtr
):
39 def __init__(self
,this
):
42 def GetDate(self
, *_args
, **_kwargs
):
43 val
= apply(calendarc
.wxCalendarEvent_GetDate
,(self
,) + _args
, _kwargs
)
44 if val
: val
= wxDateTimePtr(val
)
46 def GetWeekDay(self
, *_args
, **_kwargs
):
47 val
= apply(calendarc
.wxCalendarEvent_GetWeekDay
,(self
,) + _args
, _kwargs
)
50 return "<C wxCalendarEvent instance at %s>" % (self
.this
,)
51 class wxCalendarEvent(wxCalendarEventPtr
):
52 def __init__(self
,*_args
,**_kwargs
):
53 self
.this
= apply(calendarc
.new_wxCalendarEvent
,_args
,_kwargs
)
59 class wxCalendarCtrlPtr(wxControlPtr
):
60 def __init__(self
,this
):
63 def Create(self
, *_args
, **_kwargs
):
64 val
= apply(calendarc
.wxCalendarCtrl_Create
,(self
,) + _args
, _kwargs
)
66 def SetDate(self
, *_args
, **_kwargs
):
67 val
= apply(calendarc
.wxCalendarCtrl_SetDate
,(self
,) + _args
, _kwargs
)
69 def GetDate(self
, *_args
, **_kwargs
):
70 val
= apply(calendarc
.wxCalendarCtrl_GetDate
,(self
,) + _args
, _kwargs
)
71 if val
: val
= wxDateTimePtr(val
)
73 def SetLowerDateLimit(self
, *_args
, **_kwargs
):
74 val
= apply(calendarc
.wxCalendarCtrl_SetLowerDateLimit
,(self
,) + _args
, _kwargs
)
76 def GetLowerDateLimit(self
, *_args
, **_kwargs
):
77 val
= apply(calendarc
.wxCalendarCtrl_GetLowerDateLimit
,(self
,) + _args
, _kwargs
)
78 if val
: val
= wxDateTimePtr(val
)
80 def SetUpperDateLimit(self
, *_args
, **_kwargs
):
81 val
= apply(calendarc
.wxCalendarCtrl_SetUpperDateLimit
,(self
,) + _args
, _kwargs
)
83 def GetUpperDateLimit(self
, *_args
, **_kwargs
):
84 val
= apply(calendarc
.wxCalendarCtrl_GetUpperDateLimit
,(self
,) + _args
, _kwargs
)
85 if val
: val
= wxDateTimePtr(val
)
87 def SetDateRange(self
, *_args
, **_kwargs
):
88 val
= apply(calendarc
.wxCalendarCtrl_SetDateRange
,(self
,) + _args
, _kwargs
)
90 def EnableYearChange(self
, *_args
, **_kwargs
):
91 val
= apply(calendarc
.wxCalendarCtrl_EnableYearChange
,(self
,) + _args
, _kwargs
)
93 def EnableMonthChange(self
, *_args
, **_kwargs
):
94 val
= apply(calendarc
.wxCalendarCtrl_EnableMonthChange
,(self
,) + _args
, _kwargs
)
96 def EnableHolidayDisplay(self
, *_args
, **_kwargs
):
97 val
= apply(calendarc
.wxCalendarCtrl_EnableHolidayDisplay
,(self
,) + _args
, _kwargs
)
99 def SetHeaderColours(self
, *_args
, **_kwargs
):
100 val
= apply(calendarc
.wxCalendarCtrl_SetHeaderColours
,(self
,) + _args
, _kwargs
)
102 def GetHeaderColourFg(self
, *_args
, **_kwargs
):
103 val
= apply(calendarc
.wxCalendarCtrl_GetHeaderColourFg
,(self
,) + _args
, _kwargs
)
104 if val
: val
= wxColourPtr(val
)
106 def GetHeaderColourBg(self
, *_args
, **_kwargs
):
107 val
= apply(calendarc
.wxCalendarCtrl_GetHeaderColourBg
,(self
,) + _args
, _kwargs
)
108 if val
: val
= wxColourPtr(val
)
110 def SetHighlightColours(self
, *_args
, **_kwargs
):
111 val
= apply(calendarc
.wxCalendarCtrl_SetHighlightColours
,(self
,) + _args
, _kwargs
)
113 def GetHighlightColourFg(self
, *_args
, **_kwargs
):
114 val
= apply(calendarc
.wxCalendarCtrl_GetHighlightColourFg
,(self
,) + _args
, _kwargs
)
115 if val
: val
= wxColourPtr(val
)
117 def GetHighlightColourBg(self
, *_args
, **_kwargs
):
118 val
= apply(calendarc
.wxCalendarCtrl_GetHighlightColourBg
,(self
,) + _args
, _kwargs
)
119 if val
: val
= wxColourPtr(val
)
121 def SetHolidayColours(self
, *_args
, **_kwargs
):
122 val
= apply(calendarc
.wxCalendarCtrl_SetHolidayColours
,(self
,) + _args
, _kwargs
)
124 def GetHolidayColourFg(self
, *_args
, **_kwargs
):
125 val
= apply(calendarc
.wxCalendarCtrl_GetHolidayColourFg
,(self
,) + _args
, _kwargs
)
126 if val
: val
= wxColourPtr(val
)
128 def GetHolidayColourBg(self
, *_args
, **_kwargs
):
129 val
= apply(calendarc
.wxCalendarCtrl_GetHolidayColourBg
,(self
,) + _args
, _kwargs
)
130 if val
: val
= wxColourPtr(val
)
132 def GetAttr(self
, *_args
, **_kwargs
):
133 val
= apply(calendarc
.wxCalendarCtrl_GetAttr
,(self
,) + _args
, _kwargs
)
135 def SetAttr(self
, *_args
, **_kwargs
):
136 val
= apply(calendarc
.wxCalendarCtrl_SetAttr
,(self
,) + _args
, _kwargs
)
138 def SetHoliday(self
, *_args
, **_kwargs
):
139 val
= apply(calendarc
.wxCalendarCtrl_SetHoliday
,(self
,) + _args
, _kwargs
)
141 def ResetAttr(self
, *_args
, **_kwargs
):
142 val
= apply(calendarc
.wxCalendarCtrl_ResetAttr
,(self
,) + _args
, _kwargs
)
144 def HitTest(self
, *_args
, **_kwargs
):
145 val
= apply(calendarc
.wxCalendarCtrl_HitTest
,(self
,) + _args
, _kwargs
)
147 def Enable(self
, *_args
, **_kwargs
):
148 val
= apply(calendarc
.wxCalendarCtrl_Enable
,(self
,) + _args
, _kwargs
)
150 def Show(self
, *_args
, **_kwargs
):
151 val
= apply(calendarc
.wxCalendarCtrl_Show
,(self
,) + _args
, _kwargs
)
154 return "<C wxCalendarCtrl instance at %s>" % (self
.this
,)
155 class wxCalendarCtrl(wxCalendarCtrlPtr
):
156 def __init__(self
,*_args
,**_kwargs
):
157 self
.this
= apply(calendarc
.new_wxCalendarCtrl
,_args
,_kwargs
)
159 self
._setOORInfo
(self
)
163 def wxPreCalendarCtrl(*_args
,**_kwargs
):
164 val
= wxCalendarCtrlPtr(apply(calendarc
.new_wxPreCalendarCtrl
,_args
,_kwargs
))
172 #-------------- FUNCTION WRAPPERS ------------------
176 #-------------- VARIABLE WRAPPERS ------------------
178 wxCAL_SUNDAY_FIRST
= calendarc
.wxCAL_SUNDAY_FIRST
179 wxCAL_MONDAY_FIRST
= calendarc
.wxCAL_MONDAY_FIRST
180 wxCAL_SHOW_HOLIDAYS
= calendarc
.wxCAL_SHOW_HOLIDAYS
181 wxCAL_NO_YEAR_CHANGE
= calendarc
.wxCAL_NO_YEAR_CHANGE
182 wxCAL_NO_MONTH_CHANGE
= calendarc
.wxCAL_NO_MONTH_CHANGE
183 wxCAL_SEQUENTIAL_MONTH_SELECTION
= calendarc
.wxCAL_SEQUENTIAL_MONTH_SELECTION
184 wxCAL_SHOW_SURROUNDING_WEEKS
= calendarc
.wxCAL_SHOW_SURROUNDING_WEEKS
185 wxCAL_HITTEST_NOWHERE
= calendarc
.wxCAL_HITTEST_NOWHERE
186 wxCAL_HITTEST_HEADER
= calendarc
.wxCAL_HITTEST_HEADER
187 wxCAL_HITTEST_DAY
= calendarc
.wxCAL_HITTEST_DAY
188 wxEVT_CALENDAR_DOUBLECLICKED
= calendarc
.wxEVT_CALENDAR_DOUBLECLICKED
189 wxEVT_CALENDAR_SEL_CHANGED
= calendarc
.wxEVT_CALENDAR_SEL_CHANGED
190 wxEVT_CALENDAR_DAY_CHANGED
= calendarc
.wxEVT_CALENDAR_DAY_CHANGED
191 wxEVT_CALENDAR_MONTH_CHANGED
= calendarc
.wxEVT_CALENDAR_MONTH_CHANGED
192 wxEVT_CALENDAR_YEAR_CHANGED
= calendarc
.wxEVT_CALENDAR_YEAR_CHANGED
193 wxEVT_CALENDAR_WEEKDAY_CLICKED
= calendarc
.wxEVT_CALENDAR_WEEKDAY_CLICKED
196 #-------------- USER INCLUDE -----------------------
199 # Stuff these names into the wx namespace so wxPyConstructObject can find them
201 wx
.wxCalendarEventPtr
= wxCalendarEventPtr