code: def dragEnterEvent(self, event):
          
          source = event.mimeData()
          if source.hasUrls():
              if mimedata2url(source):
                  event.acceptProposedAction()
              else:
                  event.ignore()
          elif source.hasText():
              event.acceptProposedAction()
docs: Reimplement Qt method
          Inform Qt about the types of data that the widget accepts