(self, event)
Handle file drops
Handle file drops
Handle file drops
def dropEvent(self, event):
        """Handle file drops"""
        urls = event.mimeData().urls()
        if urls:
            self.add_path(urls[0].toLocalFile())  # add first file
            self.source = self.LOCAL_FILE
            self.load_data()
def dropEvent ( self , event ) : urls = event . mimeData ( ) . urls ( ) if urls : self . add_path ( urls [ 0 ] . toLocalFile ( ) ) # add first file self . source = self . LOCAL_FILE self . load_data ( )