RefactoringRope/ConfigurationPage/CallTipsRopePage.py

branch
eric7
changeset 394
b34f5dd3db27
parent 389
4f53795beff0
child 396
933b8fcd854f
equal deleted inserted replaced
393:8b554b390d6f 394:b34f5dd3db27
4 # 4 #
5 5
6 """ 6 """
7 Module implementing the Rope Calltips configuration page. 7 Module implementing the Rope Calltips configuration page.
8 """ 8 """
9
10 from PyQt6.QtCore import pyqtSlot
9 11
10 from Preferences.ConfigurationPages.ConfigurationPageBase import ConfigurationPageBase 12 from Preferences.ConfigurationPages.ConfigurationPageBase import ConfigurationPageBase
11 from .Ui_CallTipsRopePage import Ui_CallTipsRopePage 13 from .Ui_CallTipsRopePage import Ui_CallTipsRopePage
12 14
13 15
43 """ 45 """
44 self.__plugin.setPreferences( 46 self.__plugin.setPreferences(
45 "CodeAssistCalltipsEnabled", self.ropeCalltipsCheckBox.isChecked() 47 "CodeAssistCalltipsEnabled", self.ropeCalltipsCheckBox.isChecked()
46 ) 48 )
47 self.__plugin.setPreferences("CalltipsMaxFixes", self.ctMaxfixesSpinBox.value()) 49 self.__plugin.setPreferences("CalltipsMaxFixes", self.ctMaxfixesSpinBox.value())
50
51 def polishPage(self):
52 """
53 Public slot to perform some polishing actions.
54 """
55 names = self.__plugin.getCodeAssistServer().connectionNames()
56 self.createPython3Button.setEnabled("Python3" in names)
57 self.editPython3Button.setEnabled("Python3" in names)
58
59 @pyqtSlot()
60 def on_editPython3Button_clicked(self):
61 """
62 Private slot to edit the rope configuration for Python 3.
63 """
64 self.__plugin.getCodeAssistServer().editConfig("Python3")
65
66 @pyqtSlot()
67 def on_createPython3Button_clicked(self):
68 """
69 Private slot to create a new default rope configuration for Python 3.
70 """
71 self.__plugin.getCodeAssistServer().createConfig("Python3")

eric ide

mercurial