

def setTabsClosable(self, closable):
    ' Set the tab closable state for the widget.\n\n        This is an overridden parent class method which extends the\n        logic to account for the closable state on the individual\n        pages.\n\n        Parameters\n        ----------\n        closable : bool\n            Whether or not the tabs should be closable.\n\n        '
    super(QNotebook, self).setTabsClosable(closable)
    if closable:
        setVisible = self.setTabCloseButtonVisible
        for index in xrange(self.count()):
            page = self.widget(index)
            setVisible(index, page.isClosable(), refresh=False)
    self._refreshTabBar()

dataset/ETHPy150Open ContinuumIO/ashiba/enaml/enaml/qt/qt_notebook.py QNotebook.setTabsClosable/original