当前位置: 首页>>代码示例>>Python>>正文


Python ParagraphStyle.rightindent方法代码示例

本文整理汇总了Python中reportlab.lib.styles.ParagraphStyle.rightindent方法的典型用法代码示例。如果您正苦于以下问题:Python ParagraphStyle.rightindent方法的具体用法?Python ParagraphStyle.rightindent怎么用?Python ParagraphStyle.rightindent使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在reportlab.lib.styles.ParagraphStyle的用法示例。


在下文中一共展示了ParagraphStyle.rightindent方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: __init__

# 需要导入模块: from reportlab.lib.styles import ParagraphStyle [as 别名]
# 或者: from reportlab.lib.styles.ParagraphStyle import rightindent [as 别名]
    '''
    Image of Cambridge Map.
    '''
    def __init__(self, xoffset=0):
        self.xoffset = xoffset
    def wrap(self, *args):
        return (self.xoffset, 0)
    def draw(self):
        canvas = self.canv
        canvas.drawImage("centre2_8000_rotated.jpg", -10,-260, width=400,height=280)
        
# Create the styles for the document
logoStyle = ParagraphStyle('normal')
logoStyle.fontSize=16
logoStyle.leading=15
logoStyle.rightindent=5
logoStyle.backColor='grey'
#logoStyle.textColor='white'
logoStyle.borderWidth=5
logoStyle.borderColor='grey'

rightStyle = ParagraphStyle('normal')
rightStyle.alignment = TA_RIGHT
rightStyle.spaceBefore = 10

paraStyle = ParagraphStyle('normal')
paraStyle.spaceAfter = 10
paraStyle.alignment = TA_JUSTIFY

medStyle = ParagraphStyle('normal')
medStyle.fontSize = 8
开发者ID:fergusrossferrier,项目名称:mypidge.com,代码行数:33,代码来源:PocketPidge.py


注:本文中的reportlab.lib.styles.ParagraphStyle.rightindent方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。