code: def renamePanel(self):
          
          index = self._currentPanel.currentIndex()
          title = self._currentPanel.tabText(index)
          
          new_title, accepted = QInputDialog.getText( self,
                                                      'Rename Tab',
                                                      'Name:',
                                                      QLineEdit.Normal,
                                                      title )
          
          if accepted:
              widget = self._currentPanel.currentView()
              widget.setWindowTitle(new_title)
              self._currentPanel.setTabText(index, new_title)
docs: Prompts the user for a custom name for the current panel tab.