Esempio n. 1
0
 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)
Esempio n. 2
0
    def get_object_id(self):
        iid = self.tree.focus()
        if iid != "":
            return parse_object_id(self.tree.item(iid)["values"][0])

        return None
Esempio n. 3
0
 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)