diff -r dd54d33d21d2 -r 51aa6c6b66f7 eric6/ViewManager/ViewManager.py --- a/eric6/ViewManager/ViewManager.py Mon Oct 05 19:51:55 2020 +0200 +++ b/eric6/ViewManager/ViewManager.py Tue Oct 06 17:52:44 2020 +0200 @@ -308,7 +308,7 @@ if aw is not None: menu = aw.getMenu("Languages") if menu is not None: - menu.exec_(pos) + menu.exec(pos) def __showEolMenu(self, pos): """ @@ -320,7 +320,7 @@ if aw is not None: menu = aw.getMenu("Eol") if menu is not None: - menu.exec_(pos) + menu.exec(pos) def __showEncodingsMenu(self, pos): """ @@ -332,7 +332,7 @@ if aw is not None: menu = aw.getMenu("Encodings") if menu is not None: - menu.exec_(pos) + menu.exec(pos) ########################################################################### ## methods below need to be implemented by a subclass @@ -5386,7 +5386,7 @@ """ from .BookmarkedFilesDialog import BookmarkedFilesDialog dlg = BookmarkedFilesDialog(self.bookmarked, self.ui) - if dlg.exec_() == QDialog.Accepted: + if dlg.exec() == QDialog.Accepted: self.bookmarked = dlg.getBookmarkedFiles() def __clearBookmarked(self): @@ -5995,7 +5995,7 @@ lines = aw.lines() curLine = aw.getCursorPosition()[0] + 1 dlg = GotoDialog(lines, curLine, self.ui, None, True) - if dlg.exec_() == QDialog.Accepted: + if dlg.exec() == QDialog.Accepted: aw.gotoLine(dlg.getLinenumber(), expand=True) def __gotoBrace(self): @@ -6105,7 +6105,7 @@ if aw: from QScintilla.ZoomDialog import ZoomDialog dlg = ZoomDialog(aw.getZoom(), self.ui, None, True) - if dlg.exec_() == QDialog.Accepted: + if dlg.exec() == QDialog.Accepted: value = dlg.getZoomSize() self.__zoomTo(value) @@ -6614,7 +6614,7 @@ QCoreApplication.translate('ViewManager', "Editing {0}") .format(fileInfo), self.ui) - if dlg.exec_() == QDialog.Accepted: + if dlg.exec() == QDialog.Accepted: data = dlg.getData() try: f = open(dictionaryFile, "w", encoding="utf-8")