def activate_item(self, child, edit_prop=False, select=False):
d = self.tree.GetItemData(child)<EOL>if d:<EOL><INDENT>o = d.GetData()<EOL>self.selected_obj = o<EOL>callback = lambda o=o, **kwargs: self.update(o, **kwargs)<EOL>self.propeditor.load_object(o, callback)<EOL>if edit_prop:<EOL><INDENT>wx.CallAfter(self.propeditor.edit)<EOL><DEDENT>if select and self.designer:<EOL><INDENT>self.designer.select(o)<EOL><DEDENT><DEDENT>else:<EOL><INDENT>self.selected_obj = None<EOL><DEDENT>
load the selected item in the property editor