# eric7.Preferences.ProgramsDialog

Module implementing the Programs page.

### Global Attributes

None

### Classes

ProgramsDialog | Class implementing the Programs page.

### Functions

None

## ProgramsDialog

Class implementing the Programs page.

### Derived from

QDialog, Ui_ProgramsDialog

### Class Attributes

ToolAvailableRole

### Class Methods

None

### Methods

ProgramsDialog | Constructor
__createEntry | Private method to generate a program entry.
__createProgramEntry | Private method to generate a program entry.
on_buttonBox_clicked | Private slot called by a button of the button box clicked.
on_programsSearchButton_clicked | Private slot to search for all supported/required programs.
on_showComboBox_currentIndexChanged | Private slot to apply the selected show criteria.
show | Public slot to show the dialog.

### Static Methods

None

#### ProgramsDialog (Constructor)

ProgramsDialog(parent=None)

Constructor

parent (QWidget)
  The parent widget of this dialog.

#### ProgramsDialog.__createEntry

__createEntry(description, entryText, entryVersion)

Private method to generate a program entry.

description (str)
  descriptive text
entryText (str)
  text to show
entryVersion (str)
  version string to show

#### ProgramsDialog.__createProgramEntry

__createProgramEntry(description, exe, versionCommand="", versionStartsWith="", versionPosition=None, version="", versionCleanup=None, versionRe=None, exeModule=None, )

Private method to generate a program entry.

description (str)
  descriptive text
exe (str)
  name of the executable program
versionCommand (str)
  command line switch to get the version info. If this is empty, the given version will be shown.
versionStartsWith (str)
  start of line identifying version info
versionPosition (int)
  index of part containing the version info
version (str)
  version string to show
versionCleanup (tuple of (int, int))
  tuple of two integers giving string positions start and stop for the version string
versionRe (str)
  regexp to determine the line identifying version info. Takes precedence over versionStartsWith.
exeModule (list of str)
  list of command line parameters to execute a module with the program given in exe (e.g. to execute a Python module)

Return:
  version string of detected or given version

Return Type:
  str

#### ProgramsDialog.on_buttonBox_clicked

on_buttonBox_clicked(button)

Private slot called by a button of the button box clicked.

button (QAbstractButton)
  button that was clicked

#### ProgramsDialog.on_programsSearchButton_clicked

on_programsSearchButton_clicked()

Private slot to search for all supported/required programs.

#### ProgramsDialog.on_showComboBox_currentIndexChanged

on_showComboBox_currentIndexChanged(index)

Private slot to apply the selected show criteria.

index (int)
  index of the show criterium

#### ProgramsDialog.show

show()

Public slot to show the dialog.

Up