Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 915fe1f commit 9dfff4bCopy full SHA for 9dfff4b
1 file changed
IPython/frontend/qt/console/mainwindow.py
@@ -67,7 +67,10 @@ def __init__(self, app,
67
self.tab_widget.tabCloseRequested[int].connect(self.close_tab)
68
69
self.setCentralWidget(self.tab_widget)
70
+ # hide tab bar at first, since we have no tabs:
71
self.tab_widget.tabBar().setVisible(False)
72
+ # prevent focus in tab bar
73
+ self.tab_widget.setFocusPolicy(QtCore.Qt.NoFocus)
74
75
def update_tab_bar_visibility(self):
76
""" update visibility of the tabBar depending of the number of tab
0 commit comments