1265 self.tr("Virtual Environments"), |
1265 self.tr("Virtual Environments"), |
1266 ) |
1266 ) |
1267 |
1267 |
1268 if self.pipWidget: |
1268 if self.pipWidget: |
1269 self.rToolbox.addItem( |
1269 self.rToolbox.addItem( |
1270 self.pipWidget, EricPixmapCache.getIcon("pypi"), self.tr("PyPI") |
1270 self.pipWidget, |
|
1271 EricPixmapCache.getIcon("pypi"), |
|
1272 self.tr("PyPI Package Management"), |
1271 ) |
1273 ) |
1272 |
1274 |
1273 if self.condaWidget: |
1275 if self.condaWidget: |
1274 self.rToolbox.addItem( |
1276 self.rToolbox.addItem( |
1275 self.condaWidget, EricPixmapCache.getIcon("miniconda"), self.tr("Conda") |
1277 self.condaWidget, EricPixmapCache.getIcon("miniconda"), self.tr("Conda") |
2517 self.actions.append(self.codeDocumentationViewerActivateAct) |
2521 self.actions.append(self.codeDocumentationViewerActivateAct) |
2518 self.addAction(self.codeDocumentationViewerActivateAct) |
2522 self.addAction(self.codeDocumentationViewerActivateAct) |
2519 |
2523 |
2520 if self.pipWidget is not None: |
2524 if self.pipWidget is not None: |
2521 self.pipWidgetActivateAct = EricAction( |
2525 self.pipWidgetActivateAct = EricAction( |
2522 self.tr("PyPI"), |
2526 self.tr("PyPI Package Management"), |
2523 self.tr("PyPI"), |
2527 self.tr("PyPI Package Management"), |
2524 QKeySequence(self.tr("Ctrl+Alt+Shift+P")), |
2528 QKeySequence(self.tr("Ctrl+Alt+Shift+P")), |
2525 0, |
2529 0, |
2526 self, |
2530 self, |
2527 "pip_widget_activate", |
2531 "pip_widget_activate", |
2528 ) |
2532 ) |
2529 self.pipWidgetActivateAct.setStatusTip( |
2533 self.pipWidgetActivateAct.setStatusTip( |
2530 self.tr("Switch the input focus to the PyPI window.") |
2534 self.tr("Switch the input focus to the PyPI Package Management window.") |
2531 ) |
2535 ) |
2532 self.pipWidgetActivateAct.setWhatsThis( |
2536 self.pipWidgetActivateAct.setWhatsThis( |
2533 self.tr( |
2537 self.tr( |
2534 """<b>PyPI</b>""" |
2538 """<b>PyPI</b>""" |
2535 """<p>This switches the input focus to the PyPI window.</p>""" |
2539 """<p>This switches the input focus to the PyPI window.</p>""" |