A calendar control class.
Default class constructor. |
|
Can it accept focus? |
|
Add a selection. |
|
Decrement the month by 1. |
|
Decrement the year by 1. |
|
Do the drawing. |
|
Draw the focus indicator or a border. |
|
Draw a rectangle. |
|
Draw a rectangle. |
|
Get a color. |
|
Get the set calendar date. |
|
Get the set calendar day. |
|
Find the clicked area rectangle. |
|
Get the set calendar month. |
|
Get the set calendar year. |
|
Hide the calendar grid. |
|
Hide the calendar title. |
|
Increment the month by 1. |
|
Increment the year by 1. |
|
Is the day in the weekend |
|
Move the current date by a given interval of months/years. |
|
Key down event handler. |
|
Kill focus event handler. |
|
Left double mouse click event handler. |
|
Left mouse click event handler. |
|
Middle double mouse click event handler. |
|
Middle mouse click event handler. |
|
The on paint event handler. |
|
Right double mouse click event handler. |
|
Right mouse click event handler. |
|
Set focus event handler. |
|
The on size event handler. |
|
Determine the calendar rectangle click area and draw a selection. |
|
Select the day. |
|
Set the calendar type to ‘BUS’. |
|
Set a color. |
|
Set the current day to today. |
|
Set a calendar date. |
|
Set the day. |
|
Set the day. |
|
Set the margins |
|
Set the Month. |
|
Set the current day. |
|
Set the days to highlight. |
|
Set the size. |
|
Set the text alignment. |
|
Set the week title color. |
|
Set the year. |
|
Highlight the weekend. |
|
Test to see if the selection has a date and create event. |
A calendar control class.
Default class constructor.
parent (wx.Window) – parent window. Must not be None
;
id (integer) – window identifier. A value of -1 indicates a default value;
pos (tuple or wx.Point
) – the control position. A value of (-1, -1) indicates a default position,
chosen by either the windowing system or wxPython, depending on platform;
size (tuple or wx.Size
) – the control size. A value of (-1, -1) indicates a default size,
chosen by either the windowing system or wxPython, depending on platform;
style (integer) – the button style (unused);
validator (wx.Validator) – the validator associated to the button;
name (string) – the calendar name.
Can it accept focus?
Add a selection.
list – list of days to select
font_color – the font color to use
back_color – the back color to use
Decrement the month by 1.
Decrement the year by 1.
Draw the focus indicator or a border.
draw – True
draws the focus indicator, False
a border
Draw a rectangle.
key – the day to draw the rectangle on
bgcolor – the background color
Draw a rectangle.
key – the day to draw the rectangle on
fgcolor – the color for the pen
width – the width for the pen
Get a color.
name – a valid color name, can be defined using SetColor
Get the set calendar date.
the day, the month and the year
Get the set calendar day.
the day
Find the clicked area rectangle.
mx – the x position
my – the y position
Get the set calendar month.
the month
Get the set calendar year.
the year
Hide the calendar grid.
Hide the calendar title.
Increment the month by 1.
Increment the year by 1.
Is the day in the weekend
key – the day to check
Move the current date by a given interval of months/years.
months (int) – months to add (can be negative)
years (int) – years to add (can be negative)
the new date set.
Key down event handler.
Kill focus event handler.
Left double mouse click event handler.
Left mouse click event handler.
Middle double mouse click event handler.
Middle mouse click event handler.
The on paint event handler.
Right double mouse click event handler.
Right mouse click event handler.
Set focus event handler.
The on size event handler.
Determine the calendar rectangle click area and draw a selection.
Select the day.
key – The day to select
Set the calendar type to ‘BUS’.
Set a color.
name – the name to be assigned to the color.
value – the color value, see wx.Colour
for valid values
Set the current day to today.
Set a calendar date.
day (int) – the day
month (int) – the month
year (int) – the year
ValueError when setting an invalid month/year
the new date set.
Set the day.
day – the day to select
Set the day.
day (int) – the day
ValueError if the resulting date is invalid.
Set the margins
xmarg – the ‘x’ margin
ymarg – the ‘y’ margin
Set the Month.
month (int) – the month
ValueError if the resulting date is invalid.
Set the current day.
Set the days to highlight.
sel (list) – the list of days to highlight
Set the size.
set_size (tuple or wx.Size
) – the control size. A value of (-1, -1) indicates a default size,
chosen by either the windowing system or wxPython, depending on platform;
Set the text alignment.
vert – the vertical alignment
horz – the horizontal alignment
Set the week title color.
font_color – the font color to use.
week_color – the week color to use for the background.
Set the year.
year (int) – the year
ValueError if the resulting date is invalid.
Highlight the weekend.
Test to see if the selection has a date and create event.
key – the day to test