code: def unhook_drop(self):
          
          widget = self.widget
          widget.setAcceptDrops(False)
          del widget.dragEnterEvent
          del widget.dragMoveEvent
          del widget.dragLeaveEvent
          del widget.dropEvent
docs: Remove hooks for drop operations.