![](https://python.kazunoriri.com/wp-content/uploads/2022/07/eyecatch_pyqt-320x180.png)
Python | How to extract path by Drag and Drop
This article describes how to extract the path by Drag and Drop in a Python GUI application. [Conclusion] Import urllib.parse, set self.setAcceptDrops(True), set accept() with dragEnterEvent and dropEvent, and write the code to be performed after the drop.