diff -r dd54d33d21d2 -r 51aa6c6b66f7 eric6/QScintilla/MiniEditor.py --- a/eric6/QScintilla/MiniEditor.py Mon Oct 05 19:51:55 2020 +0200 +++ b/eric6/QScintilla/MiniEditor.py Tue Oct 06 17:52:44 2020 +0200 @@ -2862,7 +2862,7 @@ printDialog = QPrintDialog(printer, self) if self.__textEdit.hasSelectedText(): printDialog.setOption(QAbstractPrintDialog.PrintSelection, True) - if printDialog.exec_() == QDialog.Accepted: + if printDialog.exec() == QDialog.Accepted: sb.showMessage(self.tr('Printing...')) QApplication.processEvents() if self.__curFile: @@ -2903,7 +2903,7 @@ printer.setDocName(self.tr("Untitled")) preview = QPrintPreviewDialog(printer, self) preview.paintRequested.connect(self.__printPreview) - preview.exec_() + preview.exec() def __printPreview(self, printer): """ @@ -3013,7 +3013,7 @@ @param pos position the menu should be shown at (QPoint) """ - self.languagesMenu.exec_(pos) + self.languagesMenu.exec(pos) def __selectPygmentsLexer(self): """