--- a/PipxInterface/PipxWidget.py Fri Jun 28 16:36:46 2024 +0200 +++ b/PipxInterface/PipxWidget.py Fri Jun 28 17:19:26 2024 +0200 @@ -15,6 +15,7 @@ from eric7.EricGui import EricPixmapCache from eric7.EricGui.EricOverrideCursor import EricOverrideCursor from eric7.EricWidgets import EricFileDialog, EricMessageBox +from eric7.EricWidgets.EricApplication import ericApp from .Pipx import Pipx from .PipxAppStartDialog import PipxAppStartDialog @@ -142,7 +143,7 @@ ) ################################################################### - ## Menu with upgrade related actions + ## Menu with upinstall related actions ################################################################### self.__uninstallSubmenu = QMenu(self.tr("Uninstall")) @@ -167,6 +168,8 @@ self.__pipxMenu.addAction( self.tr("Standalone Interpreters"), self.__showInterpreters ) + self.__pipxMenu.addSeparator() + self.__pipxMenu.addAction(self.tr("Configure..."), self.__pipxConfigure) self.__pipxMenu.aboutToShow.connect(self.__aboutToShowPipxMenu) @@ -400,6 +403,13 @@ dlg = PipxInterpretersDialog(self.__pipx, self) dlg.exec() + @pyqtSlot() + def __pipxConfigure(self): + """ + Private slot to show the pipx configuration page. + """ + ericApp().getObject("UserInterface").showPreferences("pipxPage") + ####################################################################### ## Main widget related methods below #######################################################################