Show More
@@ -67,7 +67,10 class MainWindow(QtGui.QMainWindow): | |||||
67 | self.tab_widget.tabCloseRequested[int].connect(self.close_tab) |
|
67 | self.tab_widget.tabCloseRequested[int].connect(self.close_tab) | |
68 |
|
68 | |||
69 | self.setCentralWidget(self.tab_widget) |
|
69 | self.setCentralWidget(self.tab_widget) | |
|
70 | # hide tab bar at first, since we have no tabs: | |||
70 | self.tab_widget.tabBar().setVisible(False) |
|
71 | self.tab_widget.tabBar().setVisible(False) | |
|
72 | # prevent focus in tab bar | |||
|
73 | self.tab_widget.setFocusPolicy(QtCore.Qt.NoFocus) | |||
71 |
|
74 | |||
72 | def update_tab_bar_visibility(self): |
|
75 | def update_tab_bar_visibility(self): | |
73 | """ update visibility of the tabBar depending of the number of tab |
|
76 | """ update visibility of the tabBar depending of the number of tab |
General Comments 0
You need to be logged in to leave comments.
Login now