eric6/VirtualEnv/VirtualenvInterpreterSelectionDialog.py

changeset 8143
2c730d5fd177
parent 7923
91e843545d9a
child 8218
7c09585bd960
equal deleted inserted replaced
8141:27f636beebad 8143:2c730d5fd177
50 def __updateOK(self): 50 def __updateOK(self):
51 """ 51 """
52 Private method to update the enabled status of the OK button. 52 Private method to update the enabled status of the OK button.
53 """ 53 """
54 interpreterPath = self.pythonExecPicker.text() 54 interpreterPath = self.pythonExecPicker.text()
55 self.buttonBox.button(QDialogButtonBox.Ok).setEnabled( 55 self.buttonBox.button(QDialogButtonBox.StandardButton.Ok).setEnabled(
56 bool(interpreterPath) and 56 bool(interpreterPath) and
57 os.path.isfile(interpreterPath) and 57 os.path.isfile(interpreterPath) and
58 os.access(interpreterPath, os.X_OK) 58 os.access(interpreterPath, os.X_OK)
59 ) 59 )
60 60

eric ide

mercurial