def __init__(self, dinfo, char, nchars): PostscriptPage.__init__(self, dinfo) self.char = char # char to year self.nchars = nchars # number of chars to use for calendars # Configurable variables self.mvprop = 0.92 # proportion of month box that gets printed in self.mhprop = 0.90 # proportion of month box that gets printed in
def __init__(self,month1,nmonths,dinfo): PostscriptPage.__init__(self,dinfo) self.nmonths = nmonths self.month1 = month1 self.fontsize = self.di.subtitleFontSize self.titleheight = self.fontsize * 2.0 self.monthheight = float(self.pHeight) / float(self.nmonths) self.monthwidth = self.pWidth - self.titleheight self.column1x = self.monthwidth * (1.0 - 2.0*self.inoutcolumnwidths) self.column2x = self.monthwidth * (1.0 - self.inoutcolumnwidths)
def __init__(self, dinfo, imgfilename, imagetitle=None, left=0.0, right=1.0): PostscriptPage.__init__(self, dinfo) self.imgfilename = imgfilename self.imagetitle = imagetitle assert left >= 0.0 assert right > 0.0 assert left < 1.0 assert right <= 1.0 assert left < right assert (right - left) > 0.1 self.left = left self.right = right
def __init__(self,dinfo): PostscriptPage.__init__(self,dinfo) self.otherdaygray = (1.0+self.di.titleGray)/2.0 self.weekendgray = self.di.titleGray # When we print six month calendars across the bottom of a page, there will (obviously) # be 12 calendars across an opening. We want the left page of the opening to have the # five months before the current month, and the current month, and the right page to # have the six months after the current month. Because the current month can change in # the course of printing an opening (or even in the course of printing a page) we save # the date of the first day printed on the opening, and then we can refer to that when # printing month calendars on both the pages of the opening. The first page of an # opening is always an even page. Currently, we always start a year of diary pages on # an even page. This will have to be revisited if that changes. if self.di.evenPage: self.di.openingCalendarsCurrentDate = self.di.dt
def __init__(self, year, startingmonth, nmonths, dinfo, doEvents): PostscriptPage.__init__(self, dinfo) self.nondaygray = self.di.titleGray self.weekendgray = (1.0+self.di.titleGray)/2.0 self.titlegray = self.weekendgray self.year = year self.startingmonth = startingmonth self.nmonths = nmonths self.top = self.pTop - 2.0 # was 5.0 self.bottom = self.pBottom + 2.0 # was 5.0 self.lineheight = float(self.top - self.bottom) / float(self.nlines) self.daywidth = self.lineheight * 2 self.monthwidth = float(self.pWidth - self.daywidth) / nmonths self.fontsize = self.lineheight * 0.7 self.textb = self.lineheight * 0.2 self.titleboxThick = self.di.underlineThick / 2.0 self.doEvents = doEvents
def __init__(self, dinfo): PostscriptPage.__init__(self, dinfo) self.linenum = 1 # self.linespacing = 0 # self.minlines = 20 # Required no of lines to fit in all our info
def __init__(self, dinfo, epsfilename, epstitle=None): PostscriptPage.__init__(self, dinfo) self.epsfilename = epsfilename self.epstitle = epstitle
def __init__(self,dinfo): PostscriptPage.__init__(self,dinfo)
def __init__(self, di, thetitle): PostscriptPage.__init__(self, di) self.thetitle = thetitle
def __init__(self, dinfo, notesTitle="Notes"): self.notesTitle = notesTitle PostscriptPage.__init__(self, dinfo)