PipInterface/PipPackagesWidget.py

changeset 6828
bb6667ea9ae7
parent 6806
d306647cb82d
equal deleted inserted replaced
6825:e659bb96cdfa 6828:bb6667ea9ae7
23 from E5Network.E5XmlRpcClient import E5XmlRpcClient 23 from E5Network.E5XmlRpcClient import E5XmlRpcClient
24 24
25 from .Ui_PipPackagesWidget import Ui_PipPackagesWidget 25 from .Ui_PipPackagesWidget import Ui_PipPackagesWidget
26 26
27 import UI.PixmapCache 27 import UI.PixmapCache
28
29 from .Pip import Pip
30 28
31 29
32 class PipPackagesWidget(QWidget, Ui_PipPackagesWidget): 30 class PipPackagesWidget(QWidget, Ui_PipPackagesWidget):
33 """ 31 """
34 Class implementing the pip packages management widget. 32 Class implementing the pip packages management widget.
45 "that", "the", "their", "then", "there", "these", 43 "that", "the", "their", "then", "there", "these",
46 "they", "this", "to", "was", "will", 44 "they", "this", "to", "was", "will",
47 } 45 }
48 SearchVersionRole = Qt.UserRole + 1 46 SearchVersionRole = Qt.UserRole + 1
49 47
50 def __init__(self, parent=None): 48 def __init__(self, pip, parent=None):
51 """ 49 """
52 Constructor 50 Constructor
53 51
52 @param pip reference to the global pip interface
53 @type Pip
54 @param parent reference to the parent widget 54 @param parent reference to the parent widget
55 @type QWidget 55 @type QWidget
56 """ 56 """
57 super(PipPackagesWidget, self).__init__(parent) 57 super(PipPackagesWidget, self).__init__(parent)
58 self.setupUi(self) 58 self.setupUi(self)
76 self.searchButton.setIcon(UI.PixmapCache.getIcon("findNext")) 76 self.searchButton.setIcon(UI.PixmapCache.getIcon("findNext"))
77 self.installButton.setIcon(UI.PixmapCache.getIcon("plus")) 77 self.installButton.setIcon(UI.PixmapCache.getIcon("plus"))
78 self.installUserSiteButton.setIcon(UI.PixmapCache.getIcon("addUser")) 78 self.installUserSiteButton.setIcon(UI.PixmapCache.getIcon("addUser"))
79 self.showDetailsButton.setIcon(UI.PixmapCache.getIcon("info")) 79 self.showDetailsButton.setIcon(UI.PixmapCache.getIcon("info"))
80 80
81 self.__pip = Pip(self) 81 self.__pip = pip
82 self.__client = E5XmlRpcClient(self.__pip.getIndexUrlXml(), self) 82 self.__client = E5XmlRpcClient(self.__pip.getIndexUrlXml(), self)
83 83
84 self.packagesList.header().setSortIndicator(0, Qt.AscendingOrder) 84 self.packagesList.header().setSortIndicator(0, Qt.AscendingOrder)
85 85
86 self.__infoLabels = { 86 self.__infoLabels = {

eric ide

mercurial