+ def GetClassDefaultAttributes(*args, **kwargs):
+ """
+ GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
+
+ Get the default attributes for this class. This is useful if you want
+ to use the same font or colour in your own control as in a standard
+ control -- which is a much better idea than hard coding specific
+ colours or fonts which might look completely out of place on the
+ user's system, especially if it uses themes.
+
+ The variant parameter is only relevant under Mac currently and is
+ ignore under other platforms. Under Mac, it will change the size of
+ the returned font. See `wx.Window.SetWindowVariant` for more about
+ this.
+ """
+ return _calendar.CalendarCtrl_GetClassDefaultAttributes(*args, **kwargs)
+
+ GetClassDefaultAttributes = staticmethod(GetClassDefaultAttributes)
+ def PySetDate(self, date):
+ """takes datetime.datetime or datetime.date object"""
+ self.SetDate(_pydate2wxdate(date))
+
+ def PyGetDate(self):
+ """returns datetime.date object"""
+ return _wxdate2pydate(self.GetDate())
+
+ def PySetLowerDateLimit(self, date):
+ """takes datetime.datetime or datetime.date object"""
+ self.SetLowerDateLimit(_pydate2wxdate(date))
+
+ def PySetUpperDateLimit(self, date):
+ """takes datetime.datetime or datetime.date object"""
+ self.SetUpperDateLimit(_pydate2wxdate(date))
+
+ def PySetDateRange(self, lowerdate, upperdate):
+ """takes datetime.datetime or datetime.date objects"""
+ self.PySetLowerDateLimit(lowerdate)
+ self.PySetUpperDateLimit(upperdate)
+
+ def PyGetLowerDateLimit(self):
+ """returns datetime.date object"""
+ return _wxdate2pydate(self.GetLowerDateLimit())
+
+ def PyGetUpperDateLimit(self):
+ """returns datetime.date object"""
+ return _wxdate2pydate(self.GetUpperDateLimit())
+
+ Date = property(GetDate,SetDate,doc="See `GetDate` and `SetDate`")
+ HeaderColourBg = property(GetHeaderColourBg,doc="See `GetHeaderColourBg`")
+ HeaderColourFg = property(GetHeaderColourFg,doc="See `GetHeaderColourFg`")
+ HighlightColourBg = property(GetHighlightColourBg,doc="See `GetHighlightColourBg`")
+ HighlightColourFg = property(GetHighlightColourFg,doc="See `GetHighlightColourFg`")
+ HolidayColourBg = property(GetHolidayColourBg,doc="See `GetHolidayColourBg`")
+ HolidayColourFg = property(GetHolidayColourFg,doc="See `GetHolidayColourFg`")
+ LowerDateLimit = property(GetLowerDateLimit,SetLowerDateLimit,doc="See `GetLowerDateLimit` and `SetLowerDateLimit`")
+ MonthControl = property(GetMonthControl,doc="See `GetMonthControl`")
+ UpperDateLimit = property(GetUpperDateLimit,SetUpperDateLimit,doc="See `GetUpperDateLimit` and `SetUpperDateLimit`")
+ YearControl = property(GetYearControl,doc="See `GetYearControl`")
+_calendar.CalendarCtrl_swigregister(CalendarCtrl)
+cvar = _calendar.cvar
+CalendarNameStr = cvar.CalendarNameStr