Next / Previous / Contents / Shipman's homepage

29.2. MarginSet.dict()

Returns a dictionary suitable for use as the attributes of a box.

fosox.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))