def load_data(self):
        """Fill ListWidget with the tabs texts.

        Add elements in inverse order of stack_history.
        """

        for index in reversed(self.stack_history):
            text = self.tabs.tabText(index)
            text = text.replace('&', '')
            item = QListWidgetItem(ima.icon('TextFileIcon'), text)
            self.addItem(item)
def load_data ( self ) : for index in reversed ( self . stack_history ) : text = self . tabs . tabText ( index ) text = text . replace ( '&' , '' ) item = QListWidgetItem ( ima . icon ( 'TextFileIcon' ) , text ) self . addItem ( item )
Fill ListWidget with the tabs texts.

        Add elements in inverse order of stack_history.