gui/tools/inspector.py
def update(self, obj, **kwargs):
        "Update the tree item when the object name changes"
        # search for the old name:
        child = self.tree.FindItem(self.root, kwargs['name'])
        if DEBUG: print "update child", child, kwargs
        if child:
            self.tree.ScrollTo(child)
            self.tree.SetCurrentItem(child)
            self.tree.SelectItem(child)
            child.Selected = True
            # update the new name
            self.tree.SetItemText(child, obj.name, 0)
def update(self, obj, **kwargs):
        "Update the tree item when the object name changes"
        # search for the old name:
        child = self.tree.FindItem(self.root, kwargs['name'])
        if DEBUG: print "update child", child, kwargs
        if child:
            self.tree.ScrollTo(child)
            self.tree.SetCurrentItem(child)
            self.tree.SelectItem(child)
            child.Selected = True
            # update the new name
            self.tree.SetItemText(child, obj.name, 0)
Update the tree item when the object name changes