Preferences/ConfigurationPages/EditorAPIsPage.py

branch
5_3_x
changeset 3097
4778daba0f19
parent 2302
f29e9405c851
child 3163
9f50365a0870
equal deleted inserted replaced
3094:f453f3040984 3097:4778daba0f19
102 self.__currentAPI.apiPreparationCancelled.connect( 102 self.__currentAPI.apiPreparationCancelled.connect(
103 self.__apiPreparationCancelled) 103 self.__apiPreparationCancelled)
104 self.__currentAPI.apiPreparationStarted.connect( 104 self.__currentAPI.apiPreparationStarted.connect(
105 self.__apiPreparationStarted) 105 self.__apiPreparationStarted)
106 self.addInstalledApiFileButton.setEnabled( 106 self.addInstalledApiFileButton.setEnabled(
107 self.__currentAPI.installedAPIFiles() != "") 107 len(self.__currentAPI.installedAPIFiles()) > 0)
108 else: 108 else:
109 self.addInstalledApiFileButton.setEnabled(False) 109 self.addInstalledApiFileButton.setEnabled(False)
110 110
111 self.addPluginApiFileButton.setEnabled( 111 self.addPluginApiFileButton.setEnabled(
112 len(self.pluginManager.getPluginApiFiles(self.currentApiLanguage)) > 0) 112 len(self.pluginManager.getPluginApiFiles(self.currentApiLanguage)) > 0)

eric ide

mercurial