![]() |
Scribus
Open source desktop publishing at your fingertips
|
Public Member Functions | |
def | __init__ |
def | setupDocVariables (self) |
def | goldenMean (self, aSize) |
def | applyTextToFrame (self, aText, aFrame) |
def | createCalendar (self) |
def | createLayout (self) |
def | createPage (self) |
Parent class for all calendar types
def CalendarWizard.ScCalendar.__init__ | ( | self, | |
year, | |||
months = [] , |
|||
firstDay = calendar.SUNDAY , |
|||
drawSauce = True , |
|||
sepMonths = '/' , |
|||
lang = 'English' |
|||
) |
Setup basic things
def CalendarWizard.ScCalendar.applyTextToFrame | ( | self, | |
aText, | |||
aFrame | |||
) |
Insert the text with style.
def CalendarWizard.ScCalendar.createCalendar | ( | self | ) |
Walk through months dict and call monthly sheet
def CalendarWizard.ScCalendar.createLayout | ( | self | ) |
Create the page and optional bells and whistles around
def CalendarWizard.ScCalendar.createPage | ( | self | ) |
Wrapper to the new page with layers
def CalendarWizard.ScCalendar.goldenMean | ( | self, | |
aSize | |||
) |
Taken from samples/golden-mean.py.
def CalendarWizard.ScCalendar.setupDocVariables | ( | self | ) |
Compute base metrics here. Page layout is bordered by margins and virtually divided by golden mean 'cut' in the bottom. The calendar is in the bottom part - top is occupied with empty image frame.