 
       wx.adv.CalendarDateAttr¶
  wx.adv.CalendarDateAttr¶wx.adv.CalendarDateAttr is a custom attributes for a calendar date.
The objects of this class are used with wx.adv.CalendarCtrl.
See also
 Methods Summary¶
 Methods Summary¶| __init__ | Constructor for specifying all wx.adv.CalendarDateAttr properties. | 
| GetBackgroundColour | Returns the background colour set for the calendar date. | 
| GetBorder | Returns the border set for the calendar date. | 
| GetBorderColour | Returns the border colour set for the calendar date. | 
| GetFont | Returns the font set for the calendar date. | 
| GetMark | Used (internally) by the generic wx.adv.CalendarCtrl.Mark. | 
| GetTextColour | Returns the text colour set for the calendar date. | 
| HasBackgroundColour | Returns Trueif a non-default text background colour is set. | 
| HasBorder | Returns Trueif a non-default (i.e. any) border is set. | 
| HasBorderColour | Returns Trueif a non-default border colour is set. | 
| HasFont | Returns Trueif a non-default font is set. | 
| HasTextColour | Returns Trueif a non-default text foreground colour is set. | 
| IsHoliday | Returns Trueif this calendar day is displayed as a holiday. | 
| SetBackgroundColour | Sets the text background colour to use. | 
| SetBorder | Sets the border to use. | 
| SetBorderColour | Sets the border colour to use. | 
| SetFont | Sets the font to use. | 
| SetHoliday | If holiday  is True, this calendar day will be displayed as a holiday. | 
| SetMark | Set the attributes that will be used to Mark() days on the generic wx.adv.CalendarCtrl. | 
| SetTextColour | Sets the text (foreground) colour to use. | 
 Properties Summary¶
 Properties Summary¶| BackgroundColour | See GetBackgroundColourandSetBackgroundColour | 
| Border | See GetBorderandSetBorder | 
| BorderColour | See GetBorderColourandSetBorderColour | 
| Font | See GetFontandSetFont | 
| TextColour | See GetTextColourandSetTextColour | 
 Class API¶
 Class API¶wx.adv.CalendarDateAttr(object)¶Possible constructors:
CalendarDateAttr(colText=NullColour, colBack=NullColour,
                 colBorder=NullColour, font=NullFont, border=CAL_BORDER_NONE)
CalendarDateAttr(border, colBorder=NullColour)
CalendarDateAttr is a custom attributes for a calendar date.
__init__(self, *args, **kw)¶__init__ (self, colText=NullColour, colBack=NullColour, colBorder=NullColour, font=NullFont, border=CAL_BORDER_NONE)
Constructor for specifying all wx.adv.CalendarDateAttr properties.
| Parameters: | 
 | 
|---|
__init__ (self, border, colBorder=NullColour)
Constructor using default properties except the given border.
| Parameters: | 
 | 
|---|
GetBackgroundColour(self)¶Returns the background colour set for the calendar date.
| Return type: | Colour | 
|---|
GetBorder(self)¶Returns the border set for the calendar date.
| Return type: | wx.adv.CalendarDateBorder | 
|---|
GetBorderColour(self)¶Returns the border colour set for the calendar date.
| Return type: | Colour | 
|---|
GetMark()¶Used (internally) by the generic wx.adv.CalendarCtrl.Mark .
| Return type: | wx.adv.CalendarDateAttr | 
|---|
GetTextColour(self)¶Returns the text colour set for the calendar date.
| Return type: | Colour | 
|---|
HasBackgroundColour(self)¶Returns True if a non-default text background colour is set.
| Return type: | bool | 
|---|
HasBorder(self)¶Returns True if a non-default (i.e. any) border is set.
| Return type: | bool | 
|---|
HasBorderColour(self)¶Returns True if a non-default border colour is set.
| Return type: | bool | 
|---|
HasFont(self)¶Returns True if a non-default font is set.
| Return type: | bool | 
|---|
HasTextColour(self)¶Returns True if a non-default text foreground colour is set.
| Return type: | bool | 
|---|
IsHoliday(self)¶Returns True if this calendar day is displayed as a holiday.
| Return type: | bool | 
|---|
SetBackgroundColour(self, colBack)¶Sets the text background colour to use.
| Parameters: | colBack (wx.Colour) – | 
|---|
SetBorder(self, border)¶Sets the border to use.
| Parameters: | border (CalendarDateBorder) – | 
|---|
SetHoliday(self, holiday)¶If holiday  is True, this calendar day will be displayed as a holiday.
| Parameters: | holiday (bool) – | 
|---|
SetMark(m)¶Set the attributes that will be used to Mark() days on the generic wx.adv.CalendarCtrl.
| Parameters: | m (wx.adv.CalendarDateAttr) – | 
|---|
SetTextColour(self, colText)¶Sets the text (foreground) colour to use.
| Parameters: | colText (wx.Colour) – | 
|---|
BackgroundColour¶BorderColour¶See GetBorderColour and SetBorderColour
TextColour¶See GetTextColour and SetTextColour