PipInterface/PipPackagesWidget.py

changeset 6828
bb6667ea9ae7
parent 6806
d306647cb82d
--- 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)

eric ide

mercurial