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
Class Hierarchy¶
Methods Summary¶
Constructor for specifying all wx.adv.CalendarDateAttr properties. |
|
Returns the background colour set for the calendar date. |
|
Returns the border set for the calendar date. |
|
Returns the border colour set for the calendar date. |
|
Returns the font set for the calendar date. |
|
Used (internally) by the generic |
|
Returns the text colour set for the calendar date. |
|
Returns |
|
Returns |
|
Returns |
|
Returns |
|
Returns |
|
Returns |
|
Sets the text background colour to use. |
|
Sets the border to use. |
|
Sets the border colour to use. |
|
Sets the font to use. |
|
If holiday is |
|
Set the attributes that will be used to Mark() days on the generic wx.adv.CalendarCtrl. |
|
Sets the text (foreground) colour to use. |
Properties Summary¶
See |
|
See |
Class API¶
- class wx.adv.CalendarDateAttr(object)¶
Possible constructors:
CalendarDateAttr(colText=NullColour, colBack=NullColour, colBorder=NullColour, font=NullFont, border=CAL_BORDER_NONE) -> None CalendarDateAttr(border, colBorder=NullColour) -> None
CalendarDateAttr is a custom attributes for a calendar date.
Methods¶
- __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:
colText (wx.Colour)
colBack (wx.Colour)
colBorder (wx.Colour)
font (wx.Font)
border (CalendarDateBorder)
- Return type:
None
__init__ (self, border, colBorder=NullColour)
Constructor using default properties except the given border.
- Parameters:
border (CalendarDateBorder)
colBorder (wx.Colour)
- Return type:
None
- 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:
- GetBorderColour(self)¶
Returns the border colour set for the calendar date.
- Return type:
Colour
- static GetMark()¶
Used (internally) by the generic
wx.adv.CalendarCtrl.Mark
.- Return type:
- 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)
- Return type:
None
- SetBorder(self, border)¶
Sets the border to use.
- Parameters:
border (CalendarDateBorder)
- Return type:
None
- SetBorderColour(self, col)¶
Sets the border colour to use.
- Parameters:
col (wx.Colour)
- Return type:
None
- SetHoliday(self, holiday)¶
If holiday is
True
, this calendar day will be displayed as a holiday.- Parameters:
holiday (bool)
- Return type:
None
- static SetMark(m)¶
Set the attributes that will be used to Mark() days on the generic wx.adv.CalendarCtrl.
- Parameters:
- Return type:
None
- SetTextColour(self, colText)¶
Sets the text (foreground) colour to use.
- Parameters:
colText (wx.Colour)
- Return type:
None
Properties¶
- BackgroundColour¶
- BorderColour¶
See
GetBorderColour
andSetBorderColour
- TextColour¶
See
GetTextColour
andSetTextColour