Plugins/UiExtensionPlugins/PipInterface/PipSearchDialog.py

changeset 6301
f488d2cc5841
parent 6287
9a193ff6d24a
child 6331
758b1cb7a2e6
equal deleted inserted replaced
6300:cfb21ace8d09 6301:f488d2cc5841
24 from .Ui_PipSearchDialog import Ui_PipSearchDialog 24 from .Ui_PipSearchDialog import Ui_PipSearchDialog
25 25
26 from . import DefaultIndexUrlXml 26 from . import DefaultIndexUrlXml
27 27
28 28
29 # TODO: add support for --user; additional button
29 class PipSearchDialog(QDialog, Ui_PipSearchDialog): 30 class PipSearchDialog(QDialog, Ui_PipSearchDialog):
30 """ 31 """
31 Class implementing a dialog to search PyPI. 32 Class implementing a dialog to search PyPI.
32 """ 33 """
33 VersionRole = Qt.UserRole + 1 34 VersionRole = Qt.UserRole + 1
318 else: 319 else:
319 score += 1 320 score += 1
320 321
321 return score 322 return score
322 323
324 # TODO: add support for --user
323 def __install(self): 325 def __install(self):
324 """ 326 """
325 Private slot to install the selected packages. 327 Private slot to install the selected packages.
326 """ 328 """
327 command = self.pipComboBox.currentText() 329 command = self.pipComboBox.currentText()

eric ide

mercurial