#NEWLINE# def set_edit_point( self , i , pt ) : #NEWLINE# #INDENT# if ( i == 0 ) : #NEWLINE# #INDENT# self . set_point_by_index ( i , pt ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( i == 1 ) : #NEWLINE# #INDENT# ( x , y ) = y #NEWLINE# self . radius = math . sqrt ( ( ( abs ( ( x - self . x ) ) ** 2 ) + ( abs ( ( y - self . y ) ) ** 2 ) ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# raise ValueError ( ( 'No point corresponding to index %d' % i ) )