Plugins/UiExtensionPlugins/PipInterface/PipSelectionDialog.py

changeset 6805
10fefa6f331a
parent 6797
d9e56b0aa7ac
parent 6804
dc20bde4af90
child 6806
d306647cb82d
diff -r d9e56b0aa7ac -r 10fefa6f331a Plugins/UiExtensionPlugins/PipInterface/PipSelectionDialog.py
--- a/Plugins/UiExtensionPlugins/PipInterface/PipSelectionDialog.py	Sat Feb 23 13:05:18 2019 +0100
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,53 +0,0 @@
-# -*- coding: utf-8 -*-
-
-# Copyright (c) 2018 - 2019 Detlev Offenbach <detlev@die-offenbachs.de>
-#
-
-"""
-Module implementing a dialog to select the pip executable to be used.
-"""
-
-from __future__ import unicode_literals
-
-from PyQt5.QtWidgets import QDialog
-
-from .Ui_PipSelectionDialog import Ui_PipSelectionDialog
-
-
-class PipSelectionDialog(QDialog, Ui_PipSelectionDialog):
-    """
-    Class implementing a dialog to select the pip executable to be used.
-    """
-    def __init__(self, pip, parent=None):
-        """
-        Constructor
-        
-        @param pip reference to the pip object
-        @type Pip
-        @param parent reference to the parent widget
-        @type QWidget
-        """
-        super(PipSelectionDialog, self).__init__(parent)
-        self.setupUi(self)
-        
-        self.venvComboBox.addItem(pip.getDefaultEnvironmentString())
-        projectVenv = pip.getProjectEnvironmentString()
-        if projectVenv:
-            self.venvComboBox.addItem(projectVenv)
-        self.venvComboBox.addItems(pip.getVirtualenvNames())
-        
-        msh = self.minimumSizeHint()
-        self.resize(max(self.width(), msh.width()), msh.height())
-    
-    def getData(self):
-        """
-        Public method to get the entered data.
-        
-        @return tuple with the environment name and a flag indicating to
-            install to the user install directory
-        @rtype tuple of (str, bool)
-        """
-        return (
-            self.venvComboBox.currentText(),
-            self.userCheckBox.isChecked(),
-        )

eric ide

mercurial