parameters: (yPos, xStart, xEnd, getSizeOnly)
return_statement: return lineWidth
docstring: Draws a line and returns the height.
  
      If getSizeOnly is set then returns the height it would have
      used but without actually creating a line.
docstring_summary: Draws a line and returns the height.
docstring_tokens: Draws a line and returns the height .
function: def draw_horiz_line(yPos, xStart, xEnd, getSizeOnly):
      """Draws a line and returns the height.
  
      If getSizeOnly is set then returns the height it would have
      used but without actually creating a line.
      """
      lineWidth = 1
      if not getSizeOnly:
          newLine = scribus.createLine(xStart, yPos, xEnd, yPos)
          scribus.setLineWidth(lineWidth, newLine)
      return lineWidth
function_tokens: def draw_horiz_line ( yPos , xStart , xEnd , getSizeOnly ) : lineWidth = 1 if not getSizeOnly : newLine = scribus . createLine ( xStart , yPos , xEnd , yPos ) scribus . setLineWidth ( lineWidth , newLine ) return lineWidth