8 """ |
8 """ |
9 |
9 |
10 import os |
10 import os |
11 import sys |
11 import sys |
12 |
12 |
13 from PyQt5.QtCore import pyqtSlot |
13 from PyQt5.QtCore import pyqtSlot, Qt |
14 from PyQt5.QtWidgets import QDialog, QDialogButtonBox |
14 from PyQt5.QtWidgets import QDialog, QDialogButtonBox |
15 |
15 |
16 from E5Gui.E5PathPicker import E5PathPickerModes |
16 from E5Gui.E5PathPicker import E5PathPickerModes |
17 |
17 |
18 from .Ui_VirtualenvAddEditDialog import Ui_VirtualenvAddEditDialog |
18 from .Ui_VirtualenvAddEditDialog import Ui_VirtualenvAddEditDialog |
98 self.anacondaCheckBox.setChecked(isConda) |
98 self.anacondaCheckBox.setChecked(isConda) |
99 self.remoteCheckBox.setChecked(isRemote) |
99 self.remoteCheckBox.setChecked(isRemote) |
100 self.execPathEdit.setText(execPath) |
100 self.execPathEdit.setText(execPath) |
101 |
101 |
102 self.__updateOk() |
102 self.__updateOk() |
|
103 |
|
104 self.nameEdit.setFocus(Qt.OtherFocusReason) |
103 |
105 |
104 def __updateOk(self): |
106 def __updateOk(self): |
105 """ |
107 """ |
106 Private slot to update the state of the OK button. |
108 Private slot to update the state of the OK button. |
107 """ |
109 """ |