# eric6.Preferences.ConfigurationPages.EditorLanguageTabIndentOverrideDialog

Module implementing a dialog to set the tab and indentation width override for a language.

### Global Attributes

None

### Classes

EditorLanguageTabIndentOverrideDialog | Class implementing a dialog to set the tab and indentation width override for a language.

### Functions

None

## EditorLanguageTabIndentOverrideDialog

Class implementing a dialog to set the tab and indentation width override for a language.

### Derived from

QDialog, Ui_EditorLanguageTabIndentOverrideDialog

### Class Attributes

None

### Class Methods

None

### Methods

EditorLanguageTabIndentOverrideDialog | Constructor
getData | Public method to get the entered data.
on_languageComboBox_currentIndexChanged | Private slot to handle the selection of a language.

### Static Methods

None

#### EditorLanguageTabIndentOverrideDialog (Constructor)

EditorLanguageTabIndentOverrideDialog(*, editMode=False, languages=None, tabWidth=0, indentWidth=0, parent=None)

Constructor

editMode= (bool)
  flag indicating the edit mode (Note: in edit mode the language is fixed)
languages= (list of str)
  list of available languages
tabWidth= (int)
  tab width to be set
indentWidth= (int)
  indentation width to be set
parent= (QWidget)
  reference to the parent widget

#### EditorLanguageTabIndentOverrideDialog.getData

getData()

Public method to get the entered data.

Returns:
  tuple containing the language, the tab width and the indentation width

Return Type:
  tuple of (str, int, int)

#### EditorLanguageTabIndentOverrideDialog.on_languageComboBox_currentIndexChanged

on_languageComboBox_currentIndexChanged(lang)

Private slot to handle the selection of a language.

lang (str)
  selected language

Up