diff -r e659bb96cdfa -r bb6667ea9ae7 PipInterface/PipPackagesWidget.py --- a/PipInterface/PipPackagesWidget.py Sat Mar 02 11:12:25 2019 +0100 +++ b/PipInterface/PipPackagesWidget.py Sat Mar 02 17:33:58 2019 +0100 @@ -26,8 +26,6 @@ import UI.PixmapCache -from .Pip import Pip - class PipPackagesWidget(QWidget, Ui_PipPackagesWidget): """ @@ -47,10 +45,12 @@ } SearchVersionRole = Qt.UserRole + 1 - def __init__(self, parent=None): + def __init__(self, pip, parent=None): """ Constructor + @param pip reference to the global pip interface + @type Pip @param parent reference to the parent widget @type QWidget """ @@ -78,7 +78,7 @@ self.installUserSiteButton.setIcon(UI.PixmapCache.getIcon("addUser")) self.showDetailsButton.setIcon(UI.PixmapCache.getIcon("info")) - self.__pip = Pip(self) + self.__pip = pip self.__client = E5XmlRpcClient(self.__pip.getIndexUrlXml(), self) self.packagesList.header().setSortIndicator(0, Qt.AscendingOrder)