263 self.__widget.show() |
263 self.__widget.show() |
264 self.__widget.setFocus(Qt.FocusReason.ActiveWindowFocusReason) |
264 self.__widget.setFocus(Qt.FocusReason.ActiveWindowFocusReason) |
265 |
265 |
266 def setOutdatedIndicator(self, outdated): |
266 def setOutdatedIndicator(self, outdated): |
267 """ |
267 """ |
268 Public method to set or clear the outdated indication of the pipx icon |
268 Public method to set or clear the outdated indication of the pipx icon. |
269 |
269 |
270 @param outdated flag indicating outdated packages or dependencies |
270 @param outdated flag indicating outdated packages or dependencies |
271 @type bool |
271 @type bool |
272 """ |
272 """ |
273 uiLayoutType = self.__ui.getLayoutType() |
273 uiLayoutType = self.__ui.getLayoutType() |
277 index = self.__ui.rToolbox.indexOf(self.__widget) |
277 index = self.__ui.rToolbox.indexOf(self.__widget) |
278 self.__ui.rToolbox.setItemIcon( |
278 self.__ui.rToolbox.setItemIcon( |
279 index, |
279 index, |
280 EricPixmapCache.getIcon( |
280 EricPixmapCache.getIcon( |
281 os.path.join("PipxInterface", "icons", iconName) |
281 os.path.join("PipxInterface", "icons", iconName) |
282 ) |
282 ), |
283 ) |
283 ) |
284 elif uiLayoutType == "Sidebars": |
284 elif uiLayoutType == "Sidebars": |
285 iconName = "pipxOutdated96" if outdated else "pipx96" |
285 iconName = "pipxOutdated96" if outdated else "pipx96" |
286 index = self.__ui.rightSidebar.indexOf(self.__widget) |
286 index = self.__ui.rightSidebar.indexOf(self.__widget) |
287 self.__ui.rightSidebar.setTabIcon( |
287 self.__ui.rightSidebar.setTabIcon( |
288 index, |
288 index, |
289 EricPixmapCache.getIcon( |
289 EricPixmapCache.getIcon( |
290 os.path.join("PipxInterface", "icons", iconName) |
290 os.path.join("PipxInterface", "icons", iconName) |
291 ) |
291 ), |
292 ) |
292 ) |
293 |
293 |
294 def getPreferences(self, key): |
294 def getPreferences(self, key): |
295 """ |
295 """ |
296 Public method to retrieve the various settings values. |
296 Public method to retrieve the various settings values. |