Show More
@@ -232,8 +232,14 b' class MainWindow(QtGui.QMainWindow):' | |||||
232 | name=str('kernel '+str(self.tabWidget.count())) |
|
232 | name=str('kernel '+str(self.tabWidget.count())) | |
233 | self.tabWidget.addTab(frontend,name) |
|
233 | self.tabWidget.addTab(frontend,name) | |
234 | self.updateTabBarVisibility() |
|
234 | self.updateTabBarVisibility() | |
|
235 | self.makeFrontendVisible(frontend) | |||
235 | frontend.exit_requested.connect(self.closeTab) |
|
236 | frontend.exit_requested.connect(self.closeTab) | |
236 |
|
237 | |||
|
238 | def makeFrontendVisible(self,frontend): | |||
|
239 | widgetIndex=self.tabWidget.indexOf(frontend) | |||
|
240 | if widgetIndex > 0 : | |||
|
241 | self.tabWidget.setCurrentIndex(widgetIndex) | |||
|
242 | ||||
237 | def findMasterTab(self,tab,asList=False): |
|
243 | def findMasterTab(self,tab,asList=False): | |
238 | """ |
|
244 | """ | |
239 | Try to return the frontend that own the kernel attached to the given widget/tab. |
|
245 | Try to return the frontend that own the kernel attached to the given widget/tab. |
General Comments 0
You need to be logged in to leave comments.
Login now