84 """ |
84 """ |
85 Private method to update the enabled status of the OK button. |
85 Private method to update the enabled status of the OK button. |
86 """ |
86 """ |
87 self.buttonBox.button(QDialogButtonBox.Ok).setEnabled( |
87 self.buttonBox.button(QDialogButtonBox.Ok).setEnabled( |
88 (self.__virtualenvFound or self.__pyvenvFound) and |
88 (self.__virtualenvFound or self.__pyvenvFound) and |
89 bool(self.targetDirectoryPicker.text() and |
89 bool(self.targetDirectoryPicker.text()) and |
90 bool(self.nameEdit.text())) |
90 bool(self.nameEdit.text()) |
91 ) |
91 ) |
92 |
92 |
93 def __updateUi(self): |
93 def __updateUi(self): |
94 """ |
94 """ |
95 Private method to update the UI depending on the selected |
95 Private method to update the UI depending on the selected |