I checked with ChatGPT (finding it useful for these things), and it's suggested "self.setDragDropMode(QtWidgets.QAbstractItemView.DragDropMode.InternalMove)"; which was confirmed at https://reinhardm-dev.github.io/MzChess/_modules/gamelisttableview.html

The equivalent method in PyQt6 for the command "self.setDragDropMode(QtWidgets.QAbstractItemView.InternalMove)" is "self.setDragDropMode(QtWidgets.QAbstractItemView.DragDropMode.InternalMove)".

Here is an example of how to use this method:

1class MyTableWidget(QtWidgets.QTableWidget):
2    def __init__(self, parent=None):
3        super().__init__(parent)
4        self.setDragDropMode(QtWidgets.QAbstractItemView.DragDropMode.InternalMove)

In this example, a custom MyTableWidget class is defined that inherits from QTableWidget and sets the drag and drop mode to InternalMove. This means that items within the table can be moved by dragging and dropping them within the same table.