src/eric7/UI/UserInterface.py

branch
eric7
changeset 10798
c8fbb0cf80ac
parent 10762
d141283f7334
child 10806
2f6df822e3b9
equal deleted inserted replaced
10797:81f885140d2b 10798:c8fbb0cf80ac
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")
1461 self.tr("Virtual Environments"), 1463 self.tr("Virtual Environments"),
1462 ) 1464 )
1463 1465
1464 if self.pipWidget: 1466 if self.pipWidget:
1465 sidebar.addTab( 1467 sidebar.addTab(
1466 self.pipWidget, EricPixmapCache.getIcon("sbPyPI96"), self.tr("PyPI") 1468 self.pipWidget,
1469 EricPixmapCache.getIcon("sbPyPI96"),
1470 self.tr("PyPI Package Management"),
1467 ) 1471 )
1468 1472
1469 if self.condaWidget: 1473 if self.condaWidget:
1470 sidebar.addTab( 1474 sidebar.addTab(
1471 self.condaWidget, 1475 self.condaWidget,
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>"""

eric ide

mercurial