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_userCheckBox_clicked Private slot handling the switching of the 'user-site' mode.
on_venvComboBox_activated Private slot handling the selection of a virtual environment.
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, indexUrl, title, parent=None)

Constructor

pip (Pip)
reference to the master object
mode (str)
list command mode (one of 'list', 'uptodate', 'outdated')
indexUrl (str)
URL of the pypi index
title (str)
title of the dialog
parent (QWidget)
reference to the parent widget

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 (int)
exit code of the process
exitStatus (QProcess.ExitStatus)
exit status of the process

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 (QCloseEvent)
close event

PipListDialog.on_buttonBox_clicked

on_buttonBox_clicked(button)

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

button (QAbstractButton)
button that was clicked

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 (bool)
state of the local check box

PipListDialog.on_notRequiredCheckBox_clicked

on_notRequiredCheckBox_clicked(checked)

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

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

PipListDialog.on_packageList_itemSelectionChanged

on_packageList_itemSelectionChanged()

Private slot handling the selection of a package.

PipListDialog.on_userCheckBox_clicked

on_userCheckBox_clicked(checked)

Private slot handling the switching of the 'user-site' mode.

checked (bool)
state of the 'user-site' check box

PipListDialog.on_venvComboBox_activated

on_venvComboBox_activated(txt)

Private slot handling the selection of a virtual environment.

txt (str)
virtual environment

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