parameters: (self)
docstring: Compute base metrics here. Page layout is bordered by margins and
          virtually divided by golden mean 'cut' in the bottom. The calendar is
          in the bottom part - top is occupied with empty image frame.
docstring_summary: Compute base metrics here. Page layout is bordered by margins and
          virtually divided by golden mean 'cut' in the bottom. The calendar is
          in the bottom part - top is occupied with empty image frame.
docstring_tokens: Compute base metrics here . Page layout is bordered by margins and virtually divided by golden mean cut in the bottom . The calendar is in the bottom part - top is occupied with empty image frame .
function: def setupDocVariables(self):
          """ Compute base metrics here. Page layout is bordered by margins and
          virtually divided by golden mean 'cut' in the bottom. The calendar is
          in the bottom part - top is occupied with empty image frame. """
          page = getPageSize()
          self.pagex = page[0]
          self.pagey = page[1]
          marg = getPageMargins()
          # See http://docs.scribus.net/index.php?lang=en&page=scripterapi-page#-getPageMargins
          self.margint = marg[0]
          self.marginl = marg[1]
          self.marginr = marg[2]
          self.marginb = marg[3]
          self.width = self.pagex - self.marginl - self.marginr
          self.height = self.pagey - self.margint - self.marginb
function_tokens: def setupDocVariables ( self ) : page = getPageSize ( ) self . pagex = page [ 0 ] self . pagey = page [ 1 ] marg = getPageMargins ( ) # See http://docs.scribus.net/index.php?lang=en&page=scripterapi-page#-getPageMargins self . margint = marg [ 0 ] self . marginl = marg [ 1 ] self . marginr = marg [ 2 ] self . marginb = marg [ 3 ] self . width = self . pagex - self . marginl - self . marginr self . height = self . pagey - self . margint - self . marginb