eric7.Preferences.ProgramsDialog
Module implementing the Programs page.
Global Attributes
Classes
Functions
ProgramsDialog
Class implementing the Programs page.
Derived from
QDialog, Ui_ProgramsDialog
Class Attributes
Class Methods
Methods
Static Methods
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.