def on_select(self, event): iid = self.tree.focus() if iid != "": object_id = parse_object_id(self.tree.item(iid)["values"][0]) get_workbench().event_generate("ObjectSelect", object_id=object_id)
def get_object_id(self): iid = self.tree.focus() if iid != "": return parse_object_id(self.tree.item(iid)["values"][0]) return None
def on_select(self, event): iid = self.tree.focus() if iid != '': object_id = parse_object_id(self.tree.item(iid)['values'][0]) self._workbench.event_generate("ObjectSelect", object_id=object_id)