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”.

fohelpers.py
# - - -   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(self.top), marginBottom=str(self.bot),
             marginLeft=str(self.left), marginRight=str(self.right))