def update(self, obj, **kwargs):
<EOL>child = self.tree.FindItem(self.root, kwargs['<STR_LIT:name>'])<EOL>if DEBUG: print("<STR_LIT>", child, kwargs)<EOL>if child:<EOL><INDENT>self.tree.ScrollTo(child)<EOL>self.tree.SetCurrentItem(child)<EOL>self.tree.SelectItem(child)<EOL>child.Selected = True<EOL>self.tree.SetItemText(child, obj.name, <NUM_LIT:0>)<EOL><DEDENT>
Update the tree item when the object name changes