RefactoringRope/ConfigurationPage/AutoCompletionRopePage.py

branch
eric7
changeset 394
b34f5dd3db27
parent 389
4f53795beff0
child 396
933b8fcd854f
--- 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")

eric ide

mercurial