Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

prevent focus being tied to tab bar

  • Loading branch information...
commit 9dfff4ba1b9c373113e35c604c322d70a417ae40 1 parent 915fe1f
@minrk minrk authored
Showing with 3 additions and 0 deletions.
  1. +3 −0  IPython/frontend/qt/console/mainwindow.py
View
3  IPython/frontend/qt/console/mainwindow.py
@@ -67,7 +67,10 @@ def __init__(self, app,
self.tab_widget.tabCloseRequested[int].connect(self.close_tab)
self.setCentralWidget(self.tab_widget)
+ # hide tab bar at first, since we have no tabs:
self.tab_widget.tabBar().setVisible(False)
+ # prevent focus in tab bar
+ self.tab_widget.setFocusPolicy(QtCore.Qt.NoFocus)
def update_tab_bar_visibility(self):
""" update visibility of the tabBar depending of the number of tab
Please sign in to comment.
Something went wrong with that request. Please try again.