'Activate the edit tab.'

def edit_tab(self, index):

    self.setFocus(True)
    self.tab_index = index
    rect = self.main.tabRect(index)
    rect.adjust(1, 1, (-2), (-1))
    self.setFixedSize(rect.size())
    self.move(self.main.mapToGlobal(rect.topLeft()))
    text = self.main.tabText(index)
    text = text.replace(u'&', u'')
    if self.split_char:
        text = text.split(self.split_char)[self.split_index]
    self.setText(text)
    self.selectAll()
    if (not self.isVisible()):
        self.show()
