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=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.
colText (wx.Colour) –
colBack (wx.Colour) –
colBorder (wx.Colour) –
font (wx.Font) –
border (CalendarDateBorder) –
__init__ (self, border, colBorder=NullColour)
Constructor using default properties except the given border.
border (CalendarDateBorder) –
colBorder (wx.Colour) –
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)¶Sets the text background colour to use.
colBack (wx.Colour) –
SetBorder
(self, border)¶Sets the border to use.
border (CalendarDateBorder) –
SetHoliday
(self, holiday)¶If holiday is True
, this calendar day will be displayed as a holiday.
holiday (bool) –
SetMark
(m)¶Set the attributes that will be used to Mark() days on the generic wx.adv.CalendarCtrl.
m (wx.adv.CalendarDateAttr) –
SetTextColour
(self, colText)¶Sets the text (foreground) colour to use.
colText (wx.Colour) –
BackgroundColour
¶BorderColour
¶See GetBorderColour
and SetBorderColour
TextColour
¶See GetTextColour
and SetTextColour