PySide6 requires the proper enum type QtCore.Qt.WindowModal, not the raw integer 2. The integer form was accepted by PySide2/Qt5 but raises TypeError in PySide6.
PySide6 requires the proper enum type QtCore.Qt.WindowModal, not the raw integer 2. The integer form was accepted by PySide2/Qt5 but raises TypeError in PySide6.