Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

New tab on focus when created

  • Loading branch information...
commit ffae8ff146309a08807284603e3895c98f4cc8f6 1 parent e0cf8ec
@Carreau Carreau authored fperez committed
Showing with 6 additions and 0 deletions.
  1. +6 −0 IPython/frontend/qt/console/qtconsoleapp.py
View
6 IPython/frontend/qt/console/qtconsoleapp.py
@@ -232,8 +232,14 @@ def addTabWithFrontend(self,frontend,name=None):
name=str('kernel '+str(self.tabWidget.count()))
self.tabWidget.addTab(frontend,name)
self.updateTabBarVisibility()
+ self.makeFrontendVisible(frontend)
frontend.exit_requested.connect(self.closeTab)
+ def makeFrontendVisible(self,frontend):
+ widgetIndex=self.tabWidget.indexOf(frontend)
+ if widgetIndex > 0 :
+ self.tabWidget.setCurrentIndex(widgetIndex)
+
def findMasterTab(self,tab,asList=False):
"""
Try to return the frontend that own the kernel attached to the given widget/tab.
Please sign in to comment.
Something went wrong with that request. Please try again.