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 |