PipxInterface/Ui_PipxInterpretersDialog.py

Sun, 29 Dec 2024 14:56:04 +0100

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sun, 29 Dec 2024 14:56:04 +0100
changeset 121
8deb7d8d9b86
parent 106
dcc8d6b448fa
permissions
-rw-r--r--

Prepared a new release.

# Form implementation generated from reading ui file 'PipxInterface/PipxInterpretersDialog.ui'
#
# Created by: PyQt6 UI code generator 6.8.0
#
# WARNING: Any manual changes made to this file will be lost when pyuic6 is
# run again.  Do not edit this file unless you know what you are doing.


from PyQt6 import QtCore, QtGui, QtWidgets


class Ui_PipxInterpretersDialog(object):
    def setupUi(self, PipxInterpretersDialog):
        PipxInterpretersDialog.setObjectName("PipxInterpretersDialog")
        PipxInterpretersDialog.resize(450, 500)
        PipxInterpretersDialog.setSizeGripEnabled(True)
        self.verticalLayout = QtWidgets.QVBoxLayout(PipxInterpretersDialog)
        self.verticalLayout.setObjectName("verticalLayout")
        self.horizontalLayout = QtWidgets.QHBoxLayout()
        self.horizontalLayout.setObjectName("horizontalLayout")
        spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Minimum)
        self.horizontalLayout.addItem(spacerItem)
        self.refreshButton = QtWidgets.QToolButton(parent=PipxInterpretersDialog)
        self.refreshButton.setObjectName("refreshButton")
        self.horizontalLayout.addWidget(self.refreshButton)
        self.upgradeButton = QtWidgets.QToolButton(parent=PipxInterpretersDialog)
        self.upgradeButton.setObjectName("upgradeButton")
        self.horizontalLayout.addWidget(self.upgradeButton)
        self.pruneButton = QtWidgets.QToolButton(parent=PipxInterpretersDialog)
        self.pruneButton.setObjectName("pruneButton")
        self.horizontalLayout.addWidget(self.pruneButton)
        spacerItem1 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Minimum)
        self.horizontalLayout.addItem(spacerItem1)
        self.verticalLayout.addLayout(self.horizontalLayout)
        self.interpretersList = QtWidgets.QTreeWidget(parent=PipxInterpretersDialog)
        self.interpretersList.setEditTriggers(QtWidgets.QAbstractItemView.EditTrigger.NoEditTriggers)
        self.interpretersList.setAlternatingRowColors(True)
        self.interpretersList.setSelectionMode(QtWidgets.QAbstractItemView.SelectionMode.NoSelection)
        self.interpretersList.setObjectName("interpretersList")
        self.verticalLayout.addWidget(self.interpretersList)
        self.buttonBox = QtWidgets.QDialogButtonBox(parent=PipxInterpretersDialog)
        self.buttonBox.setOrientation(QtCore.Qt.Orientation.Horizontal)
        self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.StandardButton.Close)
        self.buttonBox.setObjectName("buttonBox")
        self.verticalLayout.addWidget(self.buttonBox)

        self.retranslateUi(PipxInterpretersDialog)
        self.buttonBox.accepted.connect(PipxInterpretersDialog.accept) # type: ignore
        self.buttonBox.rejected.connect(PipxInterpretersDialog.reject) # type: ignore
        QtCore.QMetaObject.connectSlotsByName(PipxInterpretersDialog)
        PipxInterpretersDialog.setTabOrder(self.refreshButton, self.upgradeButton)
        PipxInterpretersDialog.setTabOrder(self.upgradeButton, self.pruneButton)
        PipxInterpretersDialog.setTabOrder(self.pruneButton, self.interpretersList)

    def retranslateUi(self, PipxInterpretersDialog):
        _translate = QtCore.QCoreApplication.translate
        PipxInterpretersDialog.setWindowTitle(_translate("PipxInterpretersDialog", "Standalone Python Interpreters"))
        self.refreshButton.setToolTip(_translate("PipxInterpretersDialog", "Press to refresh the list of interpreters."))
        self.upgradeButton.setToolTip(_translate("PipxInterpretersDialog", "Press to upgrade installed interpreters to the latest micro version."))
        self.pruneButton.setToolTip(_translate("PipxInterpretersDialog", "Press to prune all unused interpreters."))
        self.interpretersList.setSortingEnabled(True)
        self.interpretersList.headerItem().setText(0, _translate("PipxInterpretersDialog", "Interpreter/Package"))

eric ide

mercurial