Beispiel #1
0
 def dropEvent(self, event):
     """ Drop files in the list. """
     if event.mimeData().hasUrls():
         # file: let the editorstack do the work.
         pyzo.editors.dropEvent(event)
     else:
         # text: act normal
         BaseTextCtrl.dropEvent(self, event)
Beispiel #2
0
 def dropEvent(self, event):
     """ Drop files in the list. """
     if event.mimeData().hasUrls():
         # file: let the editorstack do the work.
         pyzo.editors.dropEvent(event)
     else:
         # text: act normal
         BaseTextCtrl.dropEvent(self, event)
Beispiel #3
0
 def dragMoveEvent(self, event):
     """ Otherwise cursor can get stuck.
     https://bitbucket.org/iep-project/iep/issue/252
     https://qt-project.org/forums/viewthread/3180
     """
     if event.mimeData().hasUrls():
         event.acceptProposedAction()
     else:
         BaseTextCtrl.dropEvent(self, event)
Beispiel #4
0
 def dragMoveEvent(self, event):
     """ Otherwise cursor can get stuck.
     https://bitbucket.org/iep-project/iep/issue/252
     https://qt-project.org/forums/viewthread/3180
     """
     if event.mimeData().hasUrls():
         event.acceptProposedAction()
     else:
         BaseTextCtrl.dropEvent(self, event)