src/eric7/Project/ProjectVenvConfigurationDialog.py

branch
eric7
changeset 9389
7b2344009d7a
parent 9323
6ae7193558ac
child 9413
80c06d472826
equal deleted inserted replaced
9388:bfe7ea6599a3 9389:7b2344009d7a
82 if venvInterpreter: 82 if venvInterpreter:
83 self.pythonExecPicker.setText(venvInterpreter) 83 self.pythonExecPicker.setText(venvInterpreter)
84 else: 84 else:
85 self.pythonExecPicker.setText(venvDirectory) 85 self.pythonExecPicker.setText(venvDirectory)
86 86
87 self.__updateOK()
88
87 @pyqtSlot(str) 89 @pyqtSlot(str)
88 def __updateOK(self): 90 def __updateOK(self):
89 """ 91 """
90 Private method to update the enabled status of the OK button. 92 Private method to update the enabled status of the OK button.
91 """ 93 """
95 and os.path.isfile(interpreterPath) 97 and os.path.isfile(interpreterPath)
96 and os.access(interpreterPath, os.X_OK) 98 and os.access(interpreterPath, os.X_OK)
97 ) 99 )
98 100
99 @pyqtSlot(str) 101 @pyqtSlot(str)
100 def on_pythonExecPicker_textChanged(self, txt): 102 def on_pythonExecPicker_editTextChanged(self, txt):
101 """ 103 """
102 Private slot to handle changes of the entered Python interpreter path. 104 Private slot to handle changes of the entered Python interpreter path.
103 105
104 @param txt entered Python interpreter path 106 @param txt entered Python interpreter path
105 @type str 107 @type str

eric ide

mercurial