Пример #1
0
 def makeTemplate(self, rs):
     # Template for the main page.
     template = Template(
     )  # Create second template. This is for the main pages.
     # Add named text box to template for main specimen text.
     template.cTextBox('', 0, -1, 6, 1, eId=self.titleBoxId)
     template.cTextBox('', 0, 0, 6, 6, eId=self.specimenBoxId)
     # Some lines, positioned by vertical and horizontal column index.
     template.cLine(0, 0, 6, 0, stroke=0, strokeWidth=0.25)
     #template.cLine(0, 1, 6, 0, style=rs, stroke=0, strokeWidth=0.25)
     template.cLine(0, 7, 6, 0, stroke=0, strokeWidth=0.25)
     return template
Пример #2
0
 def makeTemplate(self, rs):
     hyphenation(False)
     # Template for the main page.
     template = Template(rs) # Create second template. This is for the main pages.
     # Show grid columns and paddings if rootStyle.showGrid or
     # rootStyle.showGridColumns are True.
     # The grid is just a regular element, like all others on the page. Same parameters apply.
     template.grid(rs)
     # Add named text box to template for main specimen text.
     template.cTextBox('', 0, 0, 6, 1, eId=self.titleBoxId, style=rs)
     template.cTextBox('', 1, 1, 5, 6, eId=self.specimenBoxId, style=rs)
     #template.cTextBox('', 0, 1, 2, 6, eId=self.infoBoxId, style=rs)
     # Some lines, positioned by vertical and horizontal column index.
     template.cLine(0, 0, 6, 0, style=rs, stroke=0, strokeWidth=0.25)
     template.cLine(0, 1, 6, 0, style=rs, stroke=0, strokeWidth=0.25)
     template.cLine(0, 7, 6, 0, style=rs, stroke=0, strokeWidth=0.25)
     return template