def set_parent(self, new_parent, init=False):
Component.set_parent(self, new_parent, init)<EOL>if not init:<EOL><INDENT>if DEBUG: print("<STR_LIT>", ctrl.name)<EOL>if hasattr(self.wx_obj, "<STR_LIT>"):<EOL><INDENT>self.wx_obj.Reparent(self._parent.wx_obj)<EOL><DEDENT><DEDENT>
Re-parent a child control with the new wx_obj parent