Exemplo n.º 1
0
 def _dragDataGet(self, widget, context, data, info, timestamp):
     "Returns data for the GTK DnD protocol."
     LOG.debug("GTK DnD dragDataGet with info=%d"%(info,))
     model, iRow = self.view.get_selection().get_selected()
     obj = model[iRow][1]
     if isinstance(obj, concept.Concept):
         extdata = externalize(obj)
         data.set(INFO_PROJECTS_ATTRPATH.name, 0, pickle.dumps(extdata))
Exemplo n.º 2
0
 def externalize(self):
     return self.project.concepts.index(self), externalize(self.project)
Exemplo n.º 3
0
 def externalize(self):
     return self._id, externalize(self.root)