Exemple #1
0
 def canInsertFromMimeData(self, source):
     from openalea.vpltk.qt import QtGui
     if source.hasFormat('openalealab/control'):
         return True
     elif source.hasFormat('openalealab/data'):
         return True
     elif source.hasFormat('openalealab/omero'):
         return True
     else:
         return PyCodeEditBase.canInsertFromMimeData(self, source)
Exemple #2
0
 def canInsertFromMimeData(self, source):
     from openalea.vpltk.qt import QtGui
     if source.hasFormat('openalealab/control'):
         return True
     elif source.hasFormat('openalealab/data'):
         return True
     elif source.hasFormat('openalealab/omero'):
         return True
     else:
         return PyCodeEditBase.canInsertFromMimeData(self, source)