#NEWLINE# def line( self , pt1 , pt2 , pen ) : #NEWLINE# #INDENT# ( x1 , y1 ) = ( int ( round ( pt1 [ 0 ] ) ) , int ( round ( pt1 [ 1 ] ) ) ) #NEWLINE# ( x2 , y2 ) = ( int ( round ( pt2 [ 0 ] ) ) , int ( round ( pt2 [ 1 ] ) ) ) #NEWLINE# cv2 . line ( self . canvas , ( x1 , y1 ) , ( x2 , y2 ) , pen . color , pen . linewidth )