# eric6.CondaInterface.CondaPackagesWidget

Module implementing the conda packages management widget.

### Global Attributes

None

### Classes

CondaPackagesWidget | Class implementing the conda packages management widget.

### Functions

None

## CondaPackagesWidget

Class implementing the conda packages management widget.

### Derived from

QWidget, Ui_CondaPackagesWidget

### Class Attributes

PackageBuildRole
PackageDetailedDataRole
PackageVersionRole

### Class Methods

None

### Methods

CondaPackagesWidget | Constructor
__aboutConda | Private slot to show some information about the conda installation.
__aboutToShowCondaMenu | Private slot to handle the conda menu about to be shown.
__allUpdateableItems | Private method to get a list of all items that can be updated.
__cloneEnvironment | Private slot to clone a conda environment.
__condaConfigure | Private slot to open the configuration page.
__createEnvironment | Private slot to create a conda environment from a requirements file.
__deleteEnvironment | Private slot to delete a conda environment.
__doSearch | Private method to search for packages.
__editUserConfiguration | Private slot to edit the user configuration.
__generateRequirements | Private slot to generate a requirements file.
__initCondaInterface | Private method to initialize the conda interface elements.
__initCondaMenu | Private method to create the super menu and attach it to the super menu button.
__installPackages | Private slot to install packages.
__installRequirements | Private slot to install packages from requirements files.
__populateEnvironments | Private method to get a list of environments and populate the selector.
__selectedUpdateableItems | Private method to get a list of selected items that can be updated.
__showDetails | Private method to show a dialog with details about a package item.
__updateActionButtons | Private method to set the state of the action buttons.
__updateSearchActionButtons | Private method to update the action button states of the search widget.
on_environmentsComboBox_currentIndexChanged | Private slot handling the selection of a conda environment.
on_installButton_clicked | Private slot to install a selected package.
on_packagesList_itemSelectionChanged | Private slot to handle the selection of some items..
on_recheckButton_clicked | Private slot to re-check the availability of conda and adjust the interface if it became available.
on_refreshButton_clicked | Private slot to refresh the display.
on_searchButton_clicked | Private slot handling the press of the search button.
on_searchEdit_returnPressed | Private slot handling the user pressing the Return button in the search edit.
on_searchEdit_textChanged | Private slot handling changes of the entered search specification.
on_searchResultList_itemDoubleClicked | Private slot handling a double click of an item.
on_searchResultList_itemExpanded | Private slot handling the expansion of an item.
on_searchResultList_itemSelectionChanged | Private slot handling a change of selected search results.
on_searchToggleButton_toggled | Private slot to togle the search widget.
on_showDetailsButton_clicked | Private slot handling the 'Show Details' button.
on_uninstallButton_clicked | Private slot to remove selected packages of the selected environment.
on_upgradeAllButton_clicked | Private slot to upgrade all packages of the selected environment.
on_upgradeButton_clicked | Private slot to upgrade selected packages of the selected environment.

### Static Methods

None

#### CondaPackagesWidget (Constructor)

CondaPackagesWidget(conda, parent=None)

Constructor

conda (Conda)
  reference to the conda interface
parent (QWidget)
  reference to the parent widget

#### CondaPackagesWidget.__aboutConda

__aboutConda()

Private slot to show some information about the conda installation.

#### CondaPackagesWidget.__aboutToShowCondaMenu

__aboutToShowCondaMenu()

Private slot to handle the conda menu about to be shown.

#### CondaPackagesWidget.__allUpdateableItems

__allUpdateableItems()

Private method to get a list of all items that can be updated.

Returns:
  list of all items that can be updated

Return Type:
  list of QTreeWidgetItem

#### CondaPackagesWidget.__cloneEnvironment

__cloneEnvironment()

Private slot to clone a conda environment.

#### CondaPackagesWidget.__condaConfigure

__condaConfigure()

Private slot to open the configuration page.

#### CondaPackagesWidget.__createEnvironment

__createEnvironment()

Private slot to create a conda environment from a requirements file.

#### CondaPackagesWidget.__deleteEnvironment

__deleteEnvironment()

Private slot to delete a conda environment.

#### CondaPackagesWidget.__doSearch

__doSearch()

Private method to search for packages.

#### CondaPackagesWidget.__editUserConfiguration

__editUserConfiguration()

Private slot to edit the user configuration.

#### CondaPackagesWidget.__generateRequirements

__generateRequirements()

Private slot to generate a requirements file.

#### CondaPackagesWidget.__initCondaInterface

__initCondaInterface()

Private method to initialize the conda interface elements.

#### CondaPackagesWidget.__initCondaMenu

__initCondaMenu()

Private method to create the super menu and attach it to the super menu button.

#### CondaPackagesWidget.__installPackages

__installPackages()

Private slot to install packages.

#### CondaPackagesWidget.__installRequirements

__installRequirements()

Private slot to install packages from requirements files.

#### CondaPackagesWidget.__populateEnvironments

__populateEnvironments()

Private method to get a list of environments and populate the selector.

#### CondaPackagesWidget.__selectedUpdateableItems

__selectedUpdateableItems()

Private method to get a list of selected items that can be updated.

Returns:
  list of selected items that can be updated

Return Type:
  list of QTreeWidgetItem

#### CondaPackagesWidget.__showDetails

__showDetails(item)

Private method to show a dialog with details about a package item.

item (QTreeWidgetItem)
  reference to the package item

#### CondaPackagesWidget.__updateActionButtons

__updateActionButtons()

Private method to set the state of the action buttons.

#### CondaPackagesWidget.__updateSearchActionButtons

__updateSearchActionButtons()

Private method to update the action button states of the search widget.

#### CondaPackagesWidget.on_environmentsComboBox_currentIndexChanged

on_environmentsComboBox_currentIndexChanged(index)

Private slot handling the selection of a conda environment.

index (int)
  index of the selected conda environment

#### CondaPackagesWidget.on_installButton_clicked

on_installButton_clicked()

Private slot to install a selected package.

#### CondaPackagesWidget.on_packagesList_itemSelectionChanged

on_packagesList_itemSelectionChanged()

Private slot to handle the selection of some items..

#### CondaPackagesWidget.on_recheckButton_clicked

on_recheckButton_clicked()

Private slot to re-check the availability of conda and adjust the interface if it became available.

#### CondaPackagesWidget.on_refreshButton_clicked

on_refreshButton_clicked()

Private slot to refresh the display.

#### CondaPackagesWidget.on_searchButton_clicked

on_searchButton_clicked()

Private slot handling the press of the search button.

#### CondaPackagesWidget.on_searchEdit_returnPressed

on_searchEdit_returnPressed()

Private slot handling the user pressing the Return button in the search edit.

#### CondaPackagesWidget.on_searchEdit_textChanged

on_searchEdit_textChanged(txt)

Private slot handling changes of the entered search specification.

txt (str)
  current search entry

#### CondaPackagesWidget.on_searchResultList_itemDoubleClicked

on_searchResultList_itemDoubleClicked(item, column)

Private slot handling a double click of an item.

item (QTreeWidgetItem)
  reference to the item that was double clicked
column (int)
  column of the double click

#### CondaPackagesWidget.on_searchResultList_itemExpanded

on_searchResultList_itemExpanded(item)

Private slot handling the expansion of an item.

item (QTreeWidgetItem)
  reference to the expanded item

#### CondaPackagesWidget.on_searchResultList_itemSelectionChanged

on_searchResultList_itemSelectionChanged()

Private slot handling a change of selected search results.

#### CondaPackagesWidget.on_searchToggleButton_toggled

on_searchToggleButton_toggled(checked)

Private slot to togle the search widget.

checked (bool)
  state of the search widget button

#### CondaPackagesWidget.on_showDetailsButton_clicked

on_showDetailsButton_clicked()

Private slot handling the 'Show Details' button.

#### CondaPackagesWidget.on_uninstallButton_clicked

on_uninstallButton_clicked()

Private slot to remove selected packages of the selected environment.

#### CondaPackagesWidget.on_upgradeAllButton_clicked

on_upgradeAllButton_clicked()

Private slot to upgrade all packages of the selected environment.

#### CondaPackagesWidget.on_upgradeButton_clicked

on_upgradeButton_clicked()

Private slot to upgrade selected packages of the selected environment.

Up