--- a/eric6/IconEditor/IconEditorGrid.py Mon Oct 05 19:51:55 2020 +0200 +++ b/eric6/IconEditor/IconEditorGrid.py Tue Oct 06 17:52:44 2020 +0200 @@ -988,7 +988,7 @@ """ from .IconSizeDialog import IconSizeDialog dlg = IconSizeDialog(self.__image.width(), self.__image.height()) - res = dlg.exec_() + res = dlg.exec() if res == QDialog.Accepted: newWidth, newHeight = dlg.getData() if ( @@ -1011,7 +1011,7 @@ """ from .IconSizeDialog import IconSizeDialog dlg = IconSizeDialog(self.__image.width(), self.__image.height()) - res = dlg.exec_() + res = dlg.exec() if res == QDialog.Accepted: width, height = dlg.getData() img = QImage(width, height, QImage.Format_ARGB32)