Next / Previous / Contents / Shipman's homepage

14. simpleMaster()

fosox.py
# - - -   s i m p l e M a s t e r

def simpleMaster(s, masterName, dims):
    '''Build a simple-page-master element.

      [ (s is a sox.Sox instance) and
        (masterName is a valid XML name) and
        (dims is a PageDims instance) ->
          s  +:=  an open simple-page-master element using dims for page
                  size and margins
          return that element ]
    '''
    return s.start("simple-page-master",
        dash(masterName=masterName,
             pageWidth=str(dims.pageBox.wide),
             pageHeight=str(dims.pageBox.high)),
        dims.pageMargins.dict())