Next / Previous / Contents / Shipman's homepage

11.2. MarginSet.dict(): Return a dictionary of margin attributes

See Section 4.5, “class MarginSet: Four margin dimensions”; most of the work is done by Section 4.21, “dash(): Attribute set builder”.
# - - -   M a r g i n S e t . d i c t

    def dict(self):
        '''Return a dictionary of margin attributes.
        return dash(marginTop=str(, marginBottom=str(,
             marginLeft=str(self.left), marginRight=str(self.right))