--- a/eric7/WebBrowser/PageScreenDialog.py Sun Aug 29 17:48:26 2021 +0200 +++ b/eric7/WebBrowser/PageScreenDialog.py Sun Aug 29 17:48:44 2021 +0200 @@ -7,7 +7,7 @@ Module implementing a dialog to save a screenshot of a web page. """ -from PyQt6.QtCore import pyqtSlot, Qt, QFile, QFileInfo, QSize +from PyQt6.QtCore import pyqtSlot, Qt, QFile, QFileInfo, QSize, QIODevice from PyQt6.QtGui import QImage, QPainter, QPixmap from PyQt6.QtWidgets import QDialog, QDialogButtonBox, QAbstractButton @@ -86,7 +86,7 @@ return False file = QFile(fileName) - if not file.open(QFile.WriteOnly): + if not file.open(QIODevice.OpenModeFlag.WriteOnly): EricMessageBox.warning( self, self.tr("Save Page Screen"),