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") |