--- a/src/eric7/ViewManager/ViewManager.py Thu May 25 11:12:05 2023 +0200 +++ b/src/eric7/ViewManager/ViewManager.py Thu May 25 19:51:47 2023 +0200 @@ -111,7 +111,7 @@ editorTextChanged = pyqtSignal(Editor) editorLineChanged = pyqtSignal(str, int) editorLineChangedEd = pyqtSignal(Editor, int) - editorDoubleClickedEd = pyqtSignal(Editor, QPoint, int) + editorDoubleClickedEd = pyqtSignal(Editor, QPoint, Qt.MouseButton) def __init__(self): """ @@ -287,9 +287,9 @@ Public method to signal if cascading of managed windows is available. @return flag indicating cascading of windows is available - @exception RuntimeError Not implemented - """ - raise RuntimeError("Not implemented") + @exception NotImplementedError Not implemented + """ + raise NotImplementedError("Not implemented") return False @@ -298,9 +298,9 @@ Public method to signal if tiling of managed windows is available. @return flag indicating tiling of windows is available - @exception RuntimeError Not implemented - """ - raise RuntimeError("Not implemented") + @exception NotImplementedError Not implemented + """ + raise NotImplementedError("Not implemented") return False @@ -308,26 +308,26 @@ """ Public method to tile the managed windows. - @exception RuntimeError Not implemented - """ - raise RuntimeError("Not implemented") + @exception NotImplementedError Not implemented + """ + raise NotImplementedError("Not implemented") def cascade(self): """ Public method to cascade the managed windows. - @exception RuntimeError Not implemented - """ - raise RuntimeError("Not implemented") + @exception NotImplementedError Not implemented + """ + raise NotImplementedError("Not implemented") def activeWindow(self): """ Public method to return the active (i.e. current) window. @return reference to the active editor - @exception RuntimeError Not implemented - """ - raise RuntimeError("Not implemented") + @exception NotImplementedError Not implemented + """ + raise NotImplementedError("Not implemented") return None # __IGNORE_WARNING_M831__ @@ -335,18 +335,18 @@ """ Protected method to remove all views (i.e. windows). - @exception RuntimeError Not implemented - """ - raise RuntimeError("Not implemented") + @exception NotImplementedError Not implemented + """ + raise NotImplementedError("Not implemented") def _removeView(self, win): """ Protected method to remove a view (i.e. window). @param win editor window to be removed - @exception RuntimeError Not implemented - """ - raise RuntimeError("Not implemented") + @exception NotImplementedError Not implemented + """ + raise NotImplementedError("Not implemented") def _addView(self, win, fn=None, noName="", addNext=False, indexes=None): """ @@ -364,9 +364,9 @@ @param indexes of the editor, first the split view index, second the index within the view @type tuple of two int - @exception RuntimeError Not implemented - """ - raise RuntimeError("Not implemented") + @exception NotImplementedError Not implemented + """ + raise NotImplementedError("Not implemented") def _showView(self, win, fn=None): """ @@ -374,27 +374,27 @@ @param win editor assembly to be shown @param fn filename of this editor - @exception RuntimeError Not implemented - """ - raise RuntimeError("Not implemented") + @exception NotImplementedError Not implemented + """ + raise NotImplementedError("Not implemented") def showWindowMenu(self, windowMenu): """ Public method to set up the viewmanager part of the Window menu. @param windowMenu reference to the window menu - @exception RuntimeError Not implemented - """ - raise RuntimeError("Not implemented") + @exception NotImplementedError Not implemented + """ + raise NotImplementedError("Not implemented") def _initWindowActions(self): """ Protected method to define the user interface actions for window handling. - @exception RuntimeError Not implemented - """ - raise RuntimeError("Not implemented") + @exception NotImplementedError Not implemented + """ + raise NotImplementedError("Not implemented") def setEditorName(self, editor, newName): """ @@ -402,9 +402,9 @@ @param editor editor window to be changed @param newName new name to be shown (string) - @exception RuntimeError Not implemented - """ - raise RuntimeError("Not implemented") + @exception NotImplementedError Not implemented + """ + raise NotImplementedError("Not implemented") def _modificationStatusChanged(self, m, editor): """ @@ -412,18 +412,18 @@ @param m flag indicating the modification status (boolean) @param editor editor window changed - @exception RuntimeError Not implemented - """ - raise RuntimeError("Not implemented") + @exception NotImplementedError Not implemented + """ + raise NotImplementedError("Not implemented") def mainWidget(self): """ Public method to return a reference to the main Widget of a specific view manager subclass. - @exception RuntimeError Not implemented - """ - raise RuntimeError("Not implemented") + @exception NotImplementedError Not implemented + """ + raise NotImplementedError("Not implemented") ##################################################################### ## methods above need to be implemented by a subclass @@ -6412,7 +6412,6 @@ @param now reference to the widget gaining focus @type QWidget """ - # Focus handling was changed with Qt 5.13.1; this copes with that if now is None: return @@ -7703,7 +7702,7 @@ @param pos position of the double click @type QPoint @param buttons mouse buttons that were double clicked - @type Qt.MouseButtons + @type Qt.MouseButton """ self.editorDoubleClickedEd.emit(editor, pos, buttons)