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