Module calendarcontrol
[show private | hide private]
[frames | no frames]

Module calendarcontrol

A calendar control that shows several weeks in one go

The design is inspired by the Alan Cooper article http://www.cooper.com/articles/art_goal_directed_design.htm about goal directed design. I also have to apologise for it not quite living up to that vision :-)

It is fairly feature complete and supports all sorts of interaction, scrolling and customization of appearance
Classes
Calendar  
CalendarCell  
CalendarCellAttributes  
CalendarLabel  
FontscaleCache  
PopupCalendar  

Function Summary
  GetCalendarCellAttributes(attr)
  getdownbitmapBitmap()
Returns a wx.Bitmap of the down icon
  getdownbitmapData()
Returns raw data for the down icon
  getdownbitmapImage()
Returns wx.Image of the down icon
  getupbitmapBitmap()
Returns a wx.Bitmap of the up icon
  getupbitmapData()
Returns raw data for the up icon
  getupbitmapImage()
Returns wx.Image of the up icon
int monthrange(year, month)
How many days are in the specified month?
tuple normalizedate(year, month, day)
Return a valid date (and an excellent case for metric time)

Function Details

getdownbitmapBitmap()

Returns a wx.Bitmap of the down icon

getdownbitmapData()

Returns raw data for the down icon

getdownbitmapImage()

Returns wx.Image of the down icon

getupbitmapBitmap()

Returns a wx.Bitmap of the up icon

getupbitmapData()

Returns raw data for the up icon

getupbitmapImage()

Returns wx.Image of the up icon

monthrange(year, month)

How many days are in the specified month?
Returns:
int

normalizedate(year, month, day)

Return a valid date (and an excellent case for metric time)

And example is the 32nd of January is first of Feb, or Jan -2 is December 29th of previous year. You should call this after doing arithmetic on dates (for example you can just subtract 14 from the current day and then call this to get the correct date for two weeks ago.
Returns:
(year, month, day)
           (type=tuple)

Generated by Epydoc 2.1 on Fri Aug 15 18:58:31 2008 http://epydoc.sf.net