eric6/VirtualEnv/VirtualenvAddEditDialog.py

changeset 8143
2c730d5fd177
parent 7923
91e843545d9a
child 8176
31965986ecd1
child 8218
7c09585bd960
equal deleted inserted replaced
8141:27f636beebad 8143:2c730d5fd177
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 103
104 self.nameEdit.setFocus(Qt.OtherFocusReason) 104 self.nameEdit.setFocus(Qt.FocusReason.OtherFocusReason)
105 105
106 def __updateOk(self): 106 def __updateOk(self):
107 """ 107 """
108 Private slot to update the state of the OK button. 108 Private slot to update the state of the OK button.
109 """ 109 """
134 self.remoteCheckBox.isChecked() or 134 self.remoteCheckBox.isChecked() or
135 os.access(self.pythonExecPicker.text(), os.X_OK) 135 os.access(self.pythonExecPicker.text(), os.X_OK)
136 ) 136 )
137 ) 137 )
138 138
139 self.buttonBox.button(QDialogButtonBox.Ok).setEnabled(enable) 139 self.buttonBox.button(
140 QDialogButtonBox.StandardButton.Ok).setEnabled(enable)
140 141
141 @pyqtSlot(str) 142 @pyqtSlot(str)
142 def on_nameEdit_textChanged(self, txt): 143 def on_nameEdit_textChanged(self, txt):
143 """ 144 """
144 Private slot to handle changes of the logical name. 145 Private slot to handle changes of the logical name.

eric ide

mercurial