Package layouts :: Module _base :: Class CalendarRenderer
[hide private]
[frames] | no frames]

Class CalendarRenderer

source code

object --+
         |
        CalendarRenderer
Known Subclasses:

base monthly calendar renderer - others inherit from this

Instance Methods [hide private]
 
__init__(self, Outfile, Year, Month, MonthSpan, Theme, holiday_provider, version_string, options)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
_draw_month(self, cr, rect, month, year)
this method renders a calendar month, it should be overridden in any subclass
source code
 
render(self)
main calendar rendering routine
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Instance Variables [hide private]
  Month
first month
  MonthSpan
month span
  Outfile
output file
  Theme
(Style module,Geometry module,Language module) tuple
  Year
year of first month
  holiday_provider
HolidayProvider object
  options
parser options object
  version_string
callirhoe version string
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, Outfile, Year, Month, MonthSpan, Theme, holiday_provider, version_string, options)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

_draw_month(self, cr, rect, month, year)

source code 

this method renders a calendar month, it should be overridden in any subclass

Parameters:
  • cr - cairo context
  • rect - rendering rect
  • month - month
  • year - year