Returns the **Script_Editor_tabWidget** Widget tab associated with the given editor.

        :param editor: Editor to search tab for.
        :type editor: Editor
        :return: Tab index.
        :rtype: Editor

def get_editorTab(self, editor):
        """
        Returns the **Script_Editor_tabWidget** Widget tab associated with the given editor.

        :param editor: Editor to search tab for.
        :type editor: Editor
        :return: Tab index.
        :rtype: Editor
        """

        for i in range(self.Script_Editor_tabWidget.count()):
            if not self.get_widget(i) == editor:
                continue

            LOGGER.debug("> Editor '{0}': Tab index '{1}'.".format(editor, i))
            return i