Permalink
Browse files

prevent focus being tied to tab bar

  • Loading branch information...
1 parent 915fe1f commit 9dfff4ba1b9c373113e35c604c322d70a417ae40 @minrk minrk committed Oct 20, 2011
Showing with 3 additions and 0 deletions.
  1. +3 −0 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

0 comments on commit 9dfff4b

Please sign in to comment.