def duplicate(self, event):
<EOL>new_selection = []<EOL>for obj in self.selection:<EOL><INDENT>if obj:<EOL><INDENT>if DEBUG: print("<STR_LIT>", obj.name)<EOL>obj.sel_marker.destroy()<EOL>obj.sel_marker = None<EOL>obj2 = obj.duplicate()<EOL>obj2.sel_marker = SelectionMarker(obj2)<EOL>obj2.sel_marker.show(True)<EOL>new_selection.append(obj2)<EOL><DEDENT><DEDENT>self.selection = new_selection              <EOL>self.inspector.load_object()                <EOL>
create a copy of each selected object