eric6/VirtualEnv/VirtualenvAddEditDialog.py

branch
maintenance
changeset 8176
31965986ecd1
parent 8043
0acf98cd089a
parent 8143
2c730d5fd177
child 8273
698ae46f40a4
equal deleted inserted replaced
8153:e01ae92db699 8176:31965986ecd1
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