1 # This file was created automatically by SWIG.
2 # Don't modify this file, modify the SWIG interface instead.
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):
26 def __init__(self
, *args
, **kwargs
):
27 newobj
= _calendar
.new_CalendarDateAttr(*args
, **kwargs
)
28 self
.this
= newobj
.this
31 def SetTextColour(*args
, **kwargs
): return _calendar
.CalendarDateAttr_SetTextColour(*args
, **kwargs
)
32 def SetBackgroundColour(*args
, **kwargs
): return _calendar
.CalendarDateAttr_SetBackgroundColour(*args
, **kwargs
)
33 def SetBorderColour(*args
, **kwargs
): return _calendar
.CalendarDateAttr_SetBorderColour(*args
, **kwargs
)
34 def SetFont(*args
, **kwargs
): return _calendar
.CalendarDateAttr_SetFont(*args
, **kwargs
)
35 def SetBorder(*args
, **kwargs
): return _calendar
.CalendarDateAttr_SetBorder(*args
, **kwargs
)
36 def SetHoliday(*args
, **kwargs
): return _calendar
.CalendarDateAttr_SetHoliday(*args
, **kwargs
)
37 def HasTextColour(*args
, **kwargs
): return _calendar
.CalendarDateAttr_HasTextColour(*args
, **kwargs
)
38 def HasBackgroundColour(*args
, **kwargs
): return _calendar
.CalendarDateAttr_HasBackgroundColour(*args
, **kwargs
)
39 def HasBorderColour(*args
, **kwargs
): return _calendar
.CalendarDateAttr_HasBorderColour(*args
, **kwargs
)
40 def HasFont(*args
, **kwargs
): return _calendar
.CalendarDateAttr_HasFont(*args
, **kwargs
)
41 def HasBorder(*args
, **kwargs
): return _calendar
.CalendarDateAttr_HasBorder(*args
, **kwargs
)
42 def IsHoliday(*args
, **kwargs
): return _calendar
.CalendarDateAttr_IsHoliday(*args
, **kwargs
)
43 def GetTextColour(*args
, **kwargs
): return _calendar
.CalendarDateAttr_GetTextColour(*args
, **kwargs
)
44 def GetBackgroundColour(*args
, **kwargs
): return _calendar
.CalendarDateAttr_GetBackgroundColour(*args
, **kwargs
)
45 def GetBorderColour(*args
, **kwargs
): return _calendar
.CalendarDateAttr_GetBorderColour(*args
, **kwargs
)
46 def GetFont(*args
, **kwargs
): return _calendar
.CalendarDateAttr_GetFont(*args
, **kwargs
)
47 def GetBorder(*args
, **kwargs
): return _calendar
.CalendarDateAttr_GetBorder(*args
, **kwargs
)
49 return "<%s.%s; proxy of C++ wxCalendarDateAttr instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
51 class CalendarDateAttrPtr(CalendarDateAttr
):
52 def __init__(self
, this
):
54 if not hasattr(self
,"thisown"): self
.thisown
= 0
55 self
.__class
__ = CalendarDateAttr
56 _calendar
.CalendarDateAttr_swigregister(CalendarDateAttrPtr
)
58 def CalendarDateAttrBorder(*args
, **kwargs
):
59 val
= _calendar
.new_CalendarDateAttrBorder(*args
, **kwargs
)
63 class CalendarEvent(core
.CommandEvent
):
64 def __init__(self
, *args
, **kwargs
):
65 newobj
= _calendar
.new_CalendarEvent(*args
, **kwargs
)
66 self
.this
= newobj
.this
69 def GetDate(*args
, **kwargs
): return _calendar
.CalendarEvent_GetDate(*args
, **kwargs
)
70 def GetWeekDay(*args
, **kwargs
): return _calendar
.CalendarEvent_GetWeekDay(*args
, **kwargs
)
72 return "<%s.%s; proxy of C++ wxCalendarEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
74 class CalendarEventPtr(CalendarEvent
):
75 def __init__(self
, this
):
77 if not hasattr(self
,"thisown"): self
.thisown
= 0
78 self
.__class
__ = CalendarEvent
79 _calendar
.CalendarEvent_swigregister(CalendarEventPtr
)
81 wxEVT_CALENDAR_DOUBLECLICKED
= _calendar
.wxEVT_CALENDAR_DOUBLECLICKED
82 wxEVT_CALENDAR_SEL_CHANGED
= _calendar
.wxEVT_CALENDAR_SEL_CHANGED
83 wxEVT_CALENDAR_DAY_CHANGED
= _calendar
.wxEVT_CALENDAR_DAY_CHANGED
84 wxEVT_CALENDAR_MONTH_CHANGED
= _calendar
.wxEVT_CALENDAR_MONTH_CHANGED
85 wxEVT_CALENDAR_YEAR_CHANGED
= _calendar
.wxEVT_CALENDAR_YEAR_CHANGED
86 wxEVT_CALENDAR_WEEKDAY_CLICKED
= _calendar
.wxEVT_CALENDAR_WEEKDAY_CLICKED
87 EVT_CALENDAR
= wx
.PyEventBinder( wxEVT_CALENDAR_DOUBLECLICKED
, 1)
88 EVT_CALENDAR_SEL_CHANGED
= wx
.PyEventBinder( wxEVT_CALENDAR_SEL_CHANGED
, 1)
89 EVT_CALENDAR_DAY
= wx
.PyEventBinder( wxEVT_CALENDAR_DAY_CHANGED
, 1)
90 EVT_CALENDAR_MONTH
= wx
.PyEventBinder( wxEVT_CALENDAR_MONTH_CHANGED
, 1)
91 EVT_CALENDAR_YEAR
= wx
.PyEventBinder( wxEVT_CALENDAR_YEAR_CHANGED
, 1)
92 EVT_CALENDAR_WEEKDAY_CLICKED
= wx
.PyEventBinder( wxEVT_CALENDAR_WEEKDAY_CLICKED
, 1)
94 class CalendarCtrl(core
.Control
):
95 def __init__(self
, *args
, **kwargs
):
96 newobj
= _calendar
.new_CalendarCtrl(*args
, **kwargs
)
97 self
.this
= newobj
.this
100 self
._setOORInfo
(self
)
101 def Create(*args
, **kwargs
): return _calendar
.CalendarCtrl_Create(*args
, **kwargs
)
102 def SetDate(*args
, **kwargs
): return _calendar
.CalendarCtrl_SetDate(*args
, **kwargs
)
103 def GetDate(*args
, **kwargs
): return _calendar
.CalendarCtrl_GetDate(*args
, **kwargs
)
104 def SetLowerDateLimit(*args
, **kwargs
): return _calendar
.CalendarCtrl_SetLowerDateLimit(*args
, **kwargs
)
105 def GetLowerDateLimit(*args
, **kwargs
): return _calendar
.CalendarCtrl_GetLowerDateLimit(*args
, **kwargs
)
106 def SetUpperDateLimit(*args
, **kwargs
): return _calendar
.CalendarCtrl_SetUpperDateLimit(*args
, **kwargs
)
107 def GetUpperDateLimit(*args
, **kwargs
): return _calendar
.CalendarCtrl_GetUpperDateLimit(*args
, **kwargs
)
108 def SetDateRange(*args
, **kwargs
): return _calendar
.CalendarCtrl_SetDateRange(*args
, **kwargs
)
109 def EnableYearChange(*args
, **kwargs
): return _calendar
.CalendarCtrl_EnableYearChange(*args
, **kwargs
)
110 def EnableMonthChange(*args
, **kwargs
): return _calendar
.CalendarCtrl_EnableMonthChange(*args
, **kwargs
)
111 def EnableHolidayDisplay(*args
, **kwargs
): return _calendar
.CalendarCtrl_EnableHolidayDisplay(*args
, **kwargs
)
112 def SetHeaderColours(*args
, **kwargs
): return _calendar
.CalendarCtrl_SetHeaderColours(*args
, **kwargs
)
113 def GetHeaderColourFg(*args
, **kwargs
): return _calendar
.CalendarCtrl_GetHeaderColourFg(*args
, **kwargs
)
114 def GetHeaderColourBg(*args
, **kwargs
): return _calendar
.CalendarCtrl_GetHeaderColourBg(*args
, **kwargs
)
115 def SetHighlightColours(*args
, **kwargs
): return _calendar
.CalendarCtrl_SetHighlightColours(*args
, **kwargs
)
116 def GetHighlightColourFg(*args
, **kwargs
): return _calendar
.CalendarCtrl_GetHighlightColourFg(*args
, **kwargs
)
117 def GetHighlightColourBg(*args
, **kwargs
): return _calendar
.CalendarCtrl_GetHighlightColourBg(*args
, **kwargs
)
118 def SetHolidayColours(*args
, **kwargs
): return _calendar
.CalendarCtrl_SetHolidayColours(*args
, **kwargs
)
119 def GetHolidayColourFg(*args
, **kwargs
): return _calendar
.CalendarCtrl_GetHolidayColourFg(*args
, **kwargs
)
120 def GetHolidayColourBg(*args
, **kwargs
): return _calendar
.CalendarCtrl_GetHolidayColourBg(*args
, **kwargs
)
121 def GetAttr(*args
, **kwargs
): return _calendar
.CalendarCtrl_GetAttr(*args
, **kwargs
)
122 def SetAttr(*args
, **kwargs
): return _calendar
.CalendarCtrl_SetAttr(*args
, **kwargs
)
123 def SetHoliday(*args
, **kwargs
): return _calendar
.CalendarCtrl_SetHoliday(*args
, **kwargs
)
124 def ResetAttr(*args
, **kwargs
): return _calendar
.CalendarCtrl_ResetAttr(*args
, **kwargs
)
125 def HitTest(*args
, **kwargs
): return _calendar
.CalendarCtrl_HitTest(*args
, **kwargs
)
126 def Enable(*args
, **kwargs
): return _calendar
.CalendarCtrl_Enable(*args
, **kwargs
)
127 def Show(*args
, **kwargs
): return _calendar
.CalendarCtrl_Show(*args
, **kwargs
)
129 return "<%s.%s; proxy of C++ wxCalendarCtrl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
131 class CalendarCtrlPtr(CalendarCtrl
):
132 def __init__(self
, this
):
134 if not hasattr(self
,"thisown"): self
.thisown
= 0
135 self
.__class
__ = CalendarCtrl
136 _calendar
.CalendarCtrl_swigregister(CalendarCtrlPtr
)
138 def PreCalendarCtrl(*args
, **kwargs
):
139 val
= _calendar
.new_PreCalendarCtrl(*args
, **kwargs
)