code: def __set_tab_title(self, index):
          
  
          editor = self.get_widget(index)
          if not editor:
              return
  
          title, tool_tip = foundations.strings.to_string(editor.title), foundations.strings.to_string(editor.file)
          LOGGER.debug(
              "> Setting '{0}' window title and '{1}' toolTip to tab with '{2}' index.".format(title, tool_tip, index))
          # TODO: https://bugreports.qt-project.org/browse/QTBUG-27084
          color = QColor(224, 224, 224) if editor.is_modified() else QColor(160, 160, 160)
          self.Script_Editor_tabWidget.tabBar().setTabTextColor(index, color)
          tabText = self.Script_Editor_tabWidget.tabText(index)
          tabText != title and self.Script_Editor_tabWidget.setTabText(index, title)
          self.Script_Editor_tabWidget.setTabToolTip(index, tool_tip)
docs: Sets the name and toolTip of the **Script_Editor_tabWidget** Widget tab with given index.
  
          :param index: Index of the tab containing the Model editor.
          :type index: int