#NEWLINE# def rectangle( self , pt1 , pt2 , pen , brush ) : #NEWLINE# #INDENT# ( x1 , y1 ) = pt1 #NEWLINE# ( x2 , y2 ) = pt2 #NEWLINE# cv2 . rectangle ( self . canvas , ( x1 , y1 ) , ( x2 , pt2 ) , pen . color , pen . linewidth )