<gh_stars>0
from reportlab.platypus import (Flowable)

class LineFlowable(Flowable):
	"""
	Line flowable --- draws a line in a flowable
	http://two.pairlist.net/pipermail/reportlab-users/2005-February/003695.html
	"""
	# ----------------------------------------------------------------------
	def __init__(self,  width, height=0):
		Flowable.__init__(self)
		self.width = width
		self.height = height

	# ----------------------------------------------------------------------
	def __repr__(self):
		return f"Line(w={self.width})"
	# ----------------------------------------------------------------------
	def draw(self):
		"""
		draw the line
		"""
		self.canv.line(0, self.height, self.width, self.height)


from reportlab.platypus import (Flowable)

class LineFlowable(Flowable):
	"""
	Line flowable --- draws a line in a flowable
	http://two.pairlist.net/pipermail/reportlab-users/2005-February/003695.html
	"""
	# ----------------------------------------------------------------------
	def __init__(self,  width, height=0):
		Flowable.__init__(self)
		self.width = width
		self.height = height

	# ----------------------------------------------------------------------
	def __repr__(self):
		return f"Line(w={self.width})"
	# ----------------------------------------------------------------------
	def draw(self):
		"""
		draw the line
		"""
		self.canv.line(0, self.height, self.width, self.height)
Line flowable --- draws a line in a flowable 	http://two.pairlist.net/pipermail/reportlab-users/2005-February/003695.html # ---------------------------------------------------------------------- # ---------------------------------------------------------------------- # ---------------------------------------------------------------------- draw the line