- self.thisown = 0
- def Create(self, *_args, **_kwargs):
- val = apply(calendarc.wxCalendarCtrl_Create,(self,) + _args, _kwargs)
- return val
- def SetDate(self, *_args, **_kwargs):
- val = apply(calendarc.wxCalendarCtrl_SetDate,(self,) + _args, _kwargs)
- return val
- def GetDate(self, *_args, **_kwargs):
- val = apply(calendarc.wxCalendarCtrl_GetDate,(self,) + _args, _kwargs)
- if val: val = wxDateTimePtr(val)
- return val
- def SetLowerDateLimit(self, *_args, **_kwargs):
- val = apply(calendarc.wxCalendarCtrl_SetLowerDateLimit,(self,) + _args, _kwargs)
- return val
- def GetLowerDateLimit(self, *_args, **_kwargs):
- val = apply(calendarc.wxCalendarCtrl_GetLowerDateLimit,(self,) + _args, _kwargs)
- if val: val = wxDateTimePtr(val)
- return val
- def SetUpperDateLimit(self, *_args, **_kwargs):
- val = apply(calendarc.wxCalendarCtrl_SetUpperDateLimit,(self,) + _args, _kwargs)
- return val
- def GetUpperDateLimit(self, *_args, **_kwargs):
- val = apply(calendarc.wxCalendarCtrl_GetUpperDateLimit,(self,) + _args, _kwargs)
- if val: val = wxDateTimePtr(val)
- return val
- def SetDateRange(self, *_args, **_kwargs):
- val = apply(calendarc.wxCalendarCtrl_SetDateRange,(self,) + _args, _kwargs)
- return val
- def EnableYearChange(self, *_args, **_kwargs):
- val = apply(calendarc.wxCalendarCtrl_EnableYearChange,(self,) + _args, _kwargs)
- return val
- def EnableMonthChange(self, *_args, **_kwargs):
- val = apply(calendarc.wxCalendarCtrl_EnableMonthChange,(self,) + _args, _kwargs)
- return val
- def EnableHolidayDisplay(self, *_args, **_kwargs):
- val = apply(calendarc.wxCalendarCtrl_EnableHolidayDisplay,(self,) + _args, _kwargs)
- return val
- def SetHeaderColours(self, *_args, **_kwargs):
- val = apply(calendarc.wxCalendarCtrl_SetHeaderColours,(self,) + _args, _kwargs)
- return val
- def GetHeaderColourFg(self, *_args, **_kwargs):
- val = apply(calendarc.wxCalendarCtrl_GetHeaderColourFg,(self,) + _args, _kwargs)
- if val: val = wxColourPtr(val) ; val.thisown = 1
- return val
- def GetHeaderColourBg(self, *_args, **_kwargs):
- val = apply(calendarc.wxCalendarCtrl_GetHeaderColourBg,(self,) + _args, _kwargs)
- if val: val = wxColourPtr(val) ; val.thisown = 1
- return val
- def SetHighlightColours(self, *_args, **_kwargs):
- val = apply(calendarc.wxCalendarCtrl_SetHighlightColours,(self,) + _args, _kwargs)
- return val
- def GetHighlightColourFg(self, *_args, **_kwargs):
- val = apply(calendarc.wxCalendarCtrl_GetHighlightColourFg,(self,) + _args, _kwargs)
- if val: val = wxColourPtr(val) ; val.thisown = 1
- return val
- def GetHighlightColourBg(self, *_args, **_kwargs):
- val = apply(calendarc.wxCalendarCtrl_GetHighlightColourBg,(self,) + _args, _kwargs)
- if val: val = wxColourPtr(val) ; val.thisown = 1
- return val
- def SetHolidayColours(self, *_args, **_kwargs):
- val = apply(calendarc.wxCalendarCtrl_SetHolidayColours,(self,) + _args, _kwargs)
- return val
- def GetHolidayColourFg(self, *_args, **_kwargs):
- val = apply(calendarc.wxCalendarCtrl_GetHolidayColourFg,(self,) + _args, _kwargs)
- if val: val = wxColourPtr(val) ; val.thisown = 1
- return val
- def GetHolidayColourBg(self, *_args, **_kwargs):
- val = apply(calendarc.wxCalendarCtrl_GetHolidayColourBg,(self,) + _args, _kwargs)
- if val: val = wxColourPtr(val) ; val.thisown = 1
- return val
- def GetAttr(self, *_args, **_kwargs):
- val = apply(calendarc.wxCalendarCtrl_GetAttr,(self,) + _args, _kwargs)
- if val: val = wxCalendarDateAttrPtr(val)
- return val
- def SetAttr(self, *_args, **_kwargs):
- val = apply(calendarc.wxCalendarCtrl_SetAttr,(self,) + _args, _kwargs)
- return val
- def SetHoliday(self, *_args, **_kwargs):
- val = apply(calendarc.wxCalendarCtrl_SetHoliday,(self,) + _args, _kwargs)
- return val
- def ResetAttr(self, *_args, **_kwargs):
- val = apply(calendarc.wxCalendarCtrl_ResetAttr,(self,) + _args, _kwargs)
- return val
- def HitTest(self, *_args, **_kwargs):
- val = apply(calendarc.wxCalendarCtrl_HitTest,(self,) + _args, _kwargs)
- return val
- def Enable(self, *_args, **_kwargs):
- val = apply(calendarc.wxCalendarCtrl_Enable,(self,) + _args, _kwargs)
- return val
- def Show(self, *_args, **_kwargs):
- val = apply(calendarc.wxCalendarCtrl_Show,(self,) + _args, _kwargs)
- return val
- def __repr__(self):
- return "<C wxCalendarCtrl instance at %s>" % (self.this,)
-class wxCalendarCtrl(wxCalendarCtrlPtr):
- def __init__(self,*_args,**_kwargs):
- self.this = apply(calendarc.new_wxCalendarCtrl,_args,_kwargs)
+ if not hasattr(self,"thisown"): self.thisown = 0
+ self.__class__ = CalendarEvent
+_calendar.CalendarEvent_swigregister(CalendarEventPtr)
+
+wxEVT_CALENDAR_DOUBLECLICKED = _calendar.wxEVT_CALENDAR_DOUBLECLICKED
+wxEVT_CALENDAR_SEL_CHANGED = _calendar.wxEVT_CALENDAR_SEL_CHANGED
+wxEVT_CALENDAR_DAY_CHANGED = _calendar.wxEVT_CALENDAR_DAY_CHANGED
+wxEVT_CALENDAR_MONTH_CHANGED = _calendar.wxEVT_CALENDAR_MONTH_CHANGED
+wxEVT_CALENDAR_YEAR_CHANGED = _calendar.wxEVT_CALENDAR_YEAR_CHANGED
+wxEVT_CALENDAR_WEEKDAY_CLICKED = _calendar.wxEVT_CALENDAR_WEEKDAY_CLICKED
+EVT_CALENDAR = wx.PyEventBinder( wxEVT_CALENDAR_DOUBLECLICKED, 1)
+EVT_CALENDAR_SEL_CHANGED = wx.PyEventBinder( wxEVT_CALENDAR_SEL_CHANGED, 1)
+EVT_CALENDAR_DAY = wx.PyEventBinder( wxEVT_CALENDAR_DAY_CHANGED, 1)
+EVT_CALENDAR_MONTH = wx.PyEventBinder( wxEVT_CALENDAR_MONTH_CHANGED, 1)
+EVT_CALENDAR_YEAR = wx.PyEventBinder( wxEVT_CALENDAR_YEAR_CHANGED, 1)
+EVT_CALENDAR_WEEKDAY_CLICKED = wx.PyEventBinder( wxEVT_CALENDAR_WEEKDAY_CLICKED, 1)
+
+class CalendarCtrl(core.Control):
+ def __init__(self, *args, **kwargs):
+ newobj = _calendar.new_CalendarCtrl(*args, **kwargs)
+ self.this = newobj.this