pyqt 设置QTabWidget标签页不可选

for i in range(1,7):
self.tabWidget.setTabEnabled(i,False)
i-对应标签页的位数