def get_tab_index_for_setting_name(self, name):
        options_dict = {'app_settings': 0,
                        'webkit_settings': 0,
                        'window_settings': 1,
                        'export_settings': 2,
                        'web2exe_settings': 2,
                        'compression': 3,
                        'download_settings': 4}
        for setting_group_name, setting_group in self._setting_items:
            if name in setting_group:
                return options_dict.get(setting_group_name, None)
dataset/ETHPy150Open jyapayne/Web2Executable/main.py/MainWindow.get_tab_index_for_setting_name/original