Preferences/ConfigurationPages/EditorAPIsPage.py

changeset 3038
7fe9a53280bd
parent 3025
67064c71df21
child 3060
5883ce99ee12
child 3098
02ee75d31584
equal deleted inserted replaced
3037:a417a0670a36 3038:7fe9a53280bd
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)) 112 len(self.pluginManager.getPluginApiFiles(self.currentApiLanguage))
113 > 0) 113 > 0)
114 114
115 def __editorGetApisFromApiList(self): 115 def __editorGetApisFromApiList(self):
116 """ 116 """
117 Private slot to retrieve the api filenames from the list. 117 Private slot to retrieve the api filenames from the list.
118 118
177 installedAPIFilesShort, 177 installedAPIFilesShort,
178 0, False) 178 0, False)
179 if ok: 179 if ok:
180 self.apiList.addItem(Utilities.toNativeSeparators( 180 self.apiList.addItem(Utilities.toNativeSeparators(
181 QFileInfo(QDir(installedAPIFilesPath), file) 181 QFileInfo(QDir(installedAPIFilesPath), file)
182 .absoluteFilePath())) 182 .absoluteFilePath()))
183 else: 183 else:
184 E5MessageBox.warning( 184 E5MessageBox.warning(
185 self, 185 self,
186 self.trUtf8("Add from installed APIs"), 186 self.trUtf8("Add from installed APIs"),
187 self.trUtf8("""There are no APIs installed yet.""" 187 self.trUtf8("""There are no APIs installed yet."""

eric ide

mercurial