]> git.saurik.com Git - wxWidgets.git/blame - wxPython/src/gtk/calendar.py
Changed all TRUE/true --> True and all FALSE/false --> False so the
[wxWidgets.git] / wxPython / src / gtk / calendar.py
CommitLineData
f6bcfd97 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):
26 def __init__(self, *args, **kwargs):
27 newobj = _calendar.new_CalendarDateAttr(*args, **kwargs)
28 self.this = newobj.this
f6bcfd97 29 self.thisown = 1
d14a1e28
RD
30 del newobj.thisown
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)
48 def __repr__(self):
49 return "<%s.%s; proxy of C++ wxCalendarDateAttr instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
f6bcfd97 50
d14a1e28
RD
51class CalendarDateAttrPtr(CalendarDateAttr):
52 def __init__(self, this):
53 self.this = this
54 if not hasattr(self,"thisown"): self.thisown = 0
55 self.__class__ = CalendarDateAttr
56_calendar.CalendarDateAttr_swigregister(CalendarDateAttrPtr)
f6bcfd97 57
d14a1e28
RD
58def CalendarDateAttrBorder(*args, **kwargs):
59 val = _calendar.new_CalendarDateAttrBorder(*args, **kwargs)
f6bcfd97
BP
60 val.thisown = 1
61 return val
62
d14a1e28
RD
63class CalendarEvent(core.CommandEvent):
64 def __init__(self, *args, **kwargs):
65 newobj = _calendar.new_CalendarEvent(*args, **kwargs)
66 self.this = newobj.this
f6bcfd97 67 self.thisown = 1
d14a1e28
RD
68 del newobj.thisown
69 def GetDate(*args, **kwargs): return _calendar.CalendarEvent_GetDate(*args, **kwargs)
70 def GetWeekDay(*args, **kwargs): return _calendar.CalendarEvent_GetWeekDay(*args, **kwargs)
71 def __repr__(self):
72 return "<%s.%s; proxy of C++ wxCalendarEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
f6bcfd97 73
d14a1e28
RD
74class CalendarEventPtr(CalendarEvent):
75 def __init__(self, this):
f6bcfd97 76 self.this = this
d14a1e28
RD
77 if not hasattr(self,"thisown"): self.thisown = 0
78 self.__class__ = CalendarEvent
79_calendar.CalendarEvent_swigregister(CalendarEventPtr)
80
81wxEVT_CALENDAR_DOUBLECLICKED = _calendar.wxEVT_CALENDAR_DOUBLECLICKED
82wxEVT_CALENDAR_SEL_CHANGED = _calendar.wxEVT_CALENDAR_SEL_CHANGED
83wxEVT_CALENDAR_DAY_CHANGED = _calendar.wxEVT_CALENDAR_DAY_CHANGED
84wxEVT_CALENDAR_MONTH_CHANGED = _calendar.wxEVT_CALENDAR_MONTH_CHANGED
85wxEVT_CALENDAR_YEAR_CHANGED = _calendar.wxEVT_CALENDAR_YEAR_CHANGED
86wxEVT_CALENDAR_WEEKDAY_CLICKED = _calendar.wxEVT_CALENDAR_WEEKDAY_CLICKED
87EVT_CALENDAR = wx.PyEventBinder( wxEVT_CALENDAR_DOUBLECLICKED, 1)
88EVT_CALENDAR_SEL_CHANGED = wx.PyEventBinder( wxEVT_CALENDAR_SEL_CHANGED, 1)
89EVT_CALENDAR_DAY = wx.PyEventBinder( wxEVT_CALENDAR_DAY_CHANGED, 1)
90EVT_CALENDAR_MONTH = wx.PyEventBinder( wxEVT_CALENDAR_MONTH_CHANGED, 1)
91EVT_CALENDAR_YEAR = wx.PyEventBinder( wxEVT_CALENDAR_YEAR_CHANGED, 1)
92EVT_CALENDAR_WEEKDAY_CLICKED = wx.PyEventBinder( wxEVT_CALENDAR_WEEKDAY_CLICKED, 1)
93
94class CalendarCtrl(core.Control):
95 def __init__(self, *args, **kwargs):
96 newobj = _calendar.new_CalendarCtrl(*args, **kwargs)
97 self.this = newobj.this
f6bcfd97 98 self.thisown = 1
d14a1e28 99 del newobj.thisown
0220cbc1 100 self._setOORInfo(self)
d14a1e28
RD
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)
128 def __repr__(self):
129 return "<%s.%s; proxy of C++ wxCalendarCtrl instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
f6bcfd97 130
d14a1e28
RD
131class CalendarCtrlPtr(CalendarCtrl):
132 def __init__(self, this):
133 self.this = this
134 if not hasattr(self,"thisown"): self.thisown = 0
135 self.__class__ = CalendarCtrl
136_calendar.CalendarCtrl_swigregister(CalendarCtrlPtr)
f6bcfd97 137
d14a1e28
RD
138def PreCalendarCtrl(*args, **kwargs):
139 val = _calendar.new_PreCalendarCtrl(*args, **kwargs)
aa2a5b86
RD
140 val.thisown = 1
141 return val
142
f6bcfd97 143