def dragEnterEvent(self, event):
        """Allow user to drag files"""
        if mimedata2url(event.mimeData()):
            event.accept()
        else:
            event.ignore()
def dragEnterEvent ( self , event ) : if mimedata2url ( event . mimeData ( ) ) : event . accept ( ) else : event . ignore ( )
Allow user to drag files