コード例 #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)
コード例 #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
コード例 #3
0
ファイル: heap.py プロジェクト: aivarannamaa/thonny
 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)