eric7/Plugins/ViewManagerPlugins/Tabview/Tabview.py

branch
eric7
changeset 8366
2a9f5153c438
parent 8358
144a6b854f70
child 8519
fd4722a8f782
diff -r cde9bde830ea -r 2a9f5153c438 eric7/Plugins/ViewManagerPlugins/Tabview/Tabview.py
--- a/eric7/Plugins/ViewManagerPlugins/Tabview/Tabview.py	Sun May 23 13:33:13 2021 +0200
+++ b/eric7/Plugins/ViewManagerPlugins/Tabview/Tabview.py	Sun May 23 15:35:49 2021 +0200
@@ -1091,7 +1091,8 @@
             if self.filenameOnly:
                 tabName = os.path.basename(newName)
             else:
-                tabName = ericApp().getObject("Project").getRelativePath(newName)
+                tabName = ericApp().getObject("Project").getRelativePath(
+                    newName)
             if len(tabName) > self.maxFileNameChars:
                 tabName = "...{0}".format(tabName[-self.maxFileNameChars:])
             index = self.currentTabWidget.indexOf(editor)
@@ -1353,7 +1354,8 @@
                 switched = watched.parent() is not self.currentTabWidget
                 self.currentTabWidget = watched.parent()
                 if switched:
-                    index = self.currentTabWidget.selectTab(event.position().toPoint())
+                    index = self.currentTabWidget.selectTab(
+                        event.position().toPoint())
                     switched = (
                         self.currentTabWidget.widget(index) is
                         self.activeWindow()

eric ide

mercurial