5 |
5 |
6 """ |
6 """ |
7 Module implementing a dialog to enter the logical name for a new virtual |
7 Module implementing a dialog to enter the logical name for a new virtual |
8 environment. |
8 environment. |
9 """ |
9 """ |
|
10 |
|
11 from __future__ import unicode_literals |
10 |
12 |
11 from PyQt5.QtCore import pyqtSlot, Qt |
13 from PyQt5.QtCore import pyqtSlot, Qt |
12 from PyQt5.QtWidgets import QDialog, QDialogButtonBox |
14 from PyQt5.QtWidgets import QDialog, QDialogButtonBox |
13 |
15 |
14 from .Ui_VirtualenvNameDialog import Ui_VirtualenvNameDialog |
16 from .Ui_VirtualenvNameDialog import Ui_VirtualenvNameDialog |
40 self.nameEdit.selectAll() |
42 self.nameEdit.selectAll() |
41 |
43 |
42 @pyqtSlot(str) |
44 @pyqtSlot(str) |
43 def on_nameEdit_textChanged(self, txt): |
45 def on_nameEdit_textChanged(self, txt): |
44 """ |
46 """ |
45 Slot documentation goes here. |
47 Private slot to handle a change of the environment name. |
46 |
48 |
47 @param txt contens of the name edit |
49 @param txt contens of the name edit |
48 @type str |
50 @type str |
49 """ |
51 """ |
50 items = self.envsList.findItems(txt, Qt.MatchExactly) |
52 items = self.envsList.findItems(txt, Qt.MatchExactly) |