--- a/RefactoringRope/ConfigurationPage/AutoCompletionRopePage.py Mon Oct 17 08:37:28 2022 +0200 +++ b/RefactoringRope/ConfigurationPage/AutoCompletionRopePage.py Mon Oct 17 16:45:23 2022 +0200 @@ -51,11 +51,19 @@ Public slot to perform some polishing actions. """ names = self.__plugin.getCodeAssistServer().connectionNames() - self.python3Button.setEnabled("Python3" in names) + self.createPython3Button.setEnabled("Python3" in names) + self.editPython3Button.setEnabled("Python3" in names) @pyqtSlot() - def on_python3Button_clicked(self): + def on_editPython3Button_clicked(self): """ Private slot to edit the rope configuration for Python 3. """ self.__plugin.getCodeAssistServer().editConfig("Python3") + + @pyqtSlot() + def on_createPython3Button_clicked(self): + """ + Private slot to create a new default rope configuration for Python 3. + """ + self.__plugin.getCodeAssistServer().createConfig("Python3")