475 if emptyIndex > -1: |
475 if emptyIndex > -1: |
476 self.removeTab(emptyIndex) |
476 self.removeTab(emptyIndex) |
477 |
477 |
478 return newIndex |
478 return newIndex |
479 |
479 |
480 def __captionChange(self, cap, editor): # noqa: U100 |
480 def __captionChange(self, _cap, editor): |
481 """ |
481 """ |
482 Private slot to handle Caption change signals from the editor. |
482 Private slot to handle Caption change signals from the editor. |
483 |
483 |
484 Updates the tab text and tooltip text to reflect the new caption |
484 Updates the tab text and tooltip text to reflect the new caption |
485 information. |
485 information. |
486 |
486 |
487 @param cap Caption for the editor |
487 @param _cap caption for the editor (unused) |
488 @type str |
488 @type str |
489 @param editor Editor to update the caption for |
489 @param editor Editor to update the caption for |
490 @type Editor |
490 @type Editor |
491 """ |
491 """ |
492 fn = editor.getFileName() |
492 fn = editor.getFileName() |
1161 """ |
1161 """ |
1162 Protected method to show a view (i.e. window). |
1162 Protected method to show a view (i.e. window). |
1163 |
1163 |
1164 @param win editor assembly to be shown |
1164 @param win editor assembly to be shown |
1165 @type EditorAssembly |
1165 @type EditorAssembly |
1166 @param fn filename of this editor |
1166 @param fn filename of this editor (unused) |
1167 @type str |
1167 @type str |
1168 """ |
1168 """ |
1169 win.show() |
1169 win.show() |
1170 editor = win.getEditor() |
1170 editor = win.getEditor() |
1171 for tw in self.tabWidgets: |
1171 for tw in self.tabWidgets: |