def hline ( self , x , y , width , color ) : self . rect ( x , y , width , 1 , color , fill = True )
draw a line in python
Draw a horizontal line up to a given length .
def hline(self, x, y, width, color):
        """Draw a horizontal line up to a given length."""
        self.rect(x, y, width, 1, color, fill=True)