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