#NEWLINE# def copy( self ) : #NEWLINE# #INDENT# shape = Shape ( ( 'Copy of %s' % self . label ) ) #NEWLINE# shape . points = [ p for p in self . points ] #NEWLINE# shape . fill = self . fill #NEWLINE# shape . selected = self . selected #NEWLINE# shape . _closed = self . _closed #NEWLINE# if ( self . line_color != Shape . line_color ) : #NEWLINE# #INDENT# shape . line_color = self . line_color #NEWLINE# #UNINDENT# if ( shape . fill_color != Shape . fill_color ) : #NEWLINE# #INDENT# shape . fill_color = self . fill_color #NEWLINE# #UNINDENT# return shape