Sat, 28 Feb 2015 15:09:53 +0100
Ported the code completion and calltips support of the eric4 variant of this plug-in.
# -*- coding: utf-8 -*- # Copyright (c) 2008 - 2015 Detlev Offenbach <detlev@die-offenbachs.de> # """ Module implementing the Rope Calltips configuration page. """ from Preferences.ConfigurationPages.ConfigurationPageBase import \ ConfigurationPageBase from .Ui_CallTipsRopePage import Ui_CallTipsRopePage class CallTipsRopePage(ConfigurationPageBase, Ui_CallTipsRopePage): """ Class implementing the Rope Calltips configuration page. """ def __init__(self, plugin): """ Constructor @param plugin reference to the plugin object """ ConfigurationPageBase.__init__(self) self.setupUi(self) self.setObjectName("CallTipsRopePage") self.__plugin = plugin # set initial values self.ropeCalltipsCheckBox.setChecked( self.__plugin.getPreferences("CodeAssistCalltipsEnabled")) self.ctMaxfixesSpinBox.setValue( self.__plugin.getPreferences("CalltipsMaxFixes")) def save(self): """ Public slot to save the Rope Calltips configuration. """ self.__plugin.setPreferences( "CodeAssistCalltipsEnabled", self.ropeCalltipsCheckBox.isChecked()) self.__plugin.setPreferences( "CalltipsMaxFixes", self.ctMaxfixesSpinBox.value())