eric6.Plugins.UiExtensionPlugins.PipInterface.PipListDialog

Module implementing a dialog to list installed packages.

Global Attributes

None

Classes

PipListDialog Class implementing a dialog to list installed packages.

Functions

None


PipListDialog

Class implementing a dialog to list installed packages.

Derived from

QDialog, Ui_PipListDialog

Class Attributes

CommandArguments
ShowProcessClassifiersMode
ShowProcessEntryPointsMode
ShowProcessFilesListMode
ShowProcessGeneralMode

Class Methods

None

Methods

PipListDialog Constructor
__executeUpgradePackages Private method to execute the pip upgrade command.
__finish Private slot called when the process finished or the user pressed the cancel button.
__procFinished Private slot connected to the finished signal.
__processOutput Private method to process the captured output.
__readStderr Private slot to handle the readyReadStandardError signal.
__readStdout Private slot to handle the readyReadStandardOutput signal.
__refresh Private slot to refresh the displayed list.
__stopProcess Private slot to stop the running process.
__uninstallPackages Private slot to uninstall the selected packages.
__upgradeAllPackages Private slot to upgrade all listed packages.
__upgradePackages Private slot to upgrade the selected packages.
__upgradePip Private slot to upgrade pip itself.
closeEvent Protected slot implementing a close event handler.
on_buttonBox_clicked Private slot called by a button of the button box clicked.
on_installedFilesCheckBox_clicked Private slot to handle a change of the installed files information checkbox.
on_localCheckBox_clicked Private slot handling the switching of the local mode.
on_notRequiredCheckBox_clicked Private slot handling the switching of the 'not required' mode.
on_packageList_itemSelectionChanged Private slot handling the selection of a package.
on_pipComboBox_activated Private slot handling the selection of a pip executable.
on_verboseCheckBox_clicked Private slot to handle a change of the verbose package information checkbox.
start Public method to start the command.

Static Methods

None

PipListDialog (Constructor)

PipListDialog(pip, mode, plugin, title, parent=None)

Constructor

pip
reference to the master object (Pip)
mode
list command mode (string; one of 'list', 'uptodate', 'outdated')
plugin
reference to the plugin object (ToolPipPlugin)
title
title of the dialog (string)
parent
reference to the parent widget (QWidget)

PipListDialog.__executeUpgradePackages

__executeUpgradePackages(packages)

Private method to execute the pip upgrade command.

packages (list of str)
list of package names to be upgraded

PipListDialog.__finish

__finish()

Private slot called when the process finished or the user pressed the cancel button.

PipListDialog.__procFinished

__procFinished(exitCode, exitStatus)

Private slot connected to the finished signal.

exitCode
exit code of the process (integer)
exitStatus
exit status of the process (QProcess.ExitStatus)

PipListDialog.__processOutput

__processOutput()

Private method to process the captured output.

PipListDialog.__readStderr

__readStderr()

Private slot to handle the readyReadStandardError signal.

It reads the error output of the process and inserts it into the error pane.

PipListDialog.__readStdout

__readStdout()

Private slot to handle the readyReadStandardOutput signal.

It reads the output of the process, formats it and inserts it into the contents pane.

PipListDialog.__refresh

__refresh()

Private slot to refresh the displayed list.

PipListDialog.__stopProcess

__stopProcess()

Private slot to stop the running process.

PipListDialog.__uninstallPackages

__uninstallPackages()

Private slot to uninstall the selected packages.

PipListDialog.__upgradeAllPackages

__upgradeAllPackages()

Private slot to upgrade all listed packages.

PipListDialog.__upgradePackages

__upgradePackages()

Private slot to upgrade the selected packages.

PipListDialog.__upgradePip

__upgradePip()

Private slot to upgrade pip itself.

PipListDialog.closeEvent

closeEvent(e)

Protected slot implementing a close event handler.

e
close event (QCloseEvent)

PipListDialog.on_buttonBox_clicked

on_buttonBox_clicked(button)

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

button
button that was clicked (QAbstractButton)

PipListDialog.on_installedFilesCheckBox_clicked

on_installedFilesCheckBox_clicked(checked)

Private slot to handle a change of the installed files information checkbox.

checked (bool)
state of the checkbox

PipListDialog.on_localCheckBox_clicked

on_localCheckBox_clicked(checked)

Private slot handling the switching of the local mode.

checked
state of the local check box (boolean)

PipListDialog.on_notRequiredCheckBox_clicked

on_notRequiredCheckBox_clicked(checked)

Private slot handling the switching of the 'not required' mode.

checked
state of the 'not required' check box (boolean)

PipListDialog.on_packageList_itemSelectionChanged

on_packageList_itemSelectionChanged()

Private slot handling the selection of a package.

PipListDialog.on_pipComboBox_activated

on_pipComboBox_activated(txt)

Private slot handling the selection of a pip executable.

txt
path of the pip executable (string)

PipListDialog.on_verboseCheckBox_clicked

on_verboseCheckBox_clicked(checked)

Private slot to handle a change of the verbose package information checkbox.

checked (bool)
state of the checkbox

PipListDialog.start

start()

Public method to start the command.

Up