Sat, 26 Apr 2025 12:34:32 +0200
MicroPython
- Added a configuration option to disable the support for the no longer produced Pimoroni Pico Wireless Pack.
# Form implementation generated from reading ui file 'src/eric7/CodeFormatting/BlackFormattingDialog.ui' # # Created by: PyQt6 UI code generator 6.7.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_BlackFormattingDialog(object): def setupUi(self, BlackFormattingDialog): BlackFormattingDialog.setObjectName("BlackFormattingDialog") BlackFormattingDialog.resize(700, 650) BlackFormattingDialog.setSizeGripEnabled(True) self.verticalLayout = QtWidgets.QVBoxLayout(BlackFormattingDialog) 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.label_2 = QtWidgets.QLabel(parent=BlackFormattingDialog) self.label_2.setObjectName("label_2") self.horizontalLayout.addWidget(self.label_2) self.statusFilterComboBox = QtWidgets.QComboBox(parent=BlackFormattingDialog) self.statusFilterComboBox.setMinimumSize(QtCore.QSize(150, 0)) self.statusFilterComboBox.setSizeAdjustPolicy(QtWidgets.QComboBox.SizeAdjustPolicy.AdjustToMinimumContentsLengthWithIcon) self.statusFilterComboBox.setObjectName("statusFilterComboBox") self.horizontalLayout.addWidget(self.statusFilterComboBox) self.verticalLayout.addLayout(self.horizontalLayout) self.resultsList = QtWidgets.QTreeWidget(parent=BlackFormattingDialog) self.resultsList.setAlternatingRowColors(True) self.resultsList.setRootIsDecorated(False) self.resultsList.setItemsExpandable(False) self.resultsList.setObjectName("resultsList") self.verticalLayout.addWidget(self.resultsList) self.statisticsGroup = QtWidgets.QGroupBox(parent=BlackFormattingDialog) self.statisticsGroup.setObjectName("statisticsGroup") self.gridLayout = QtWidgets.QGridLayout(self.statisticsGroup) self.gridLayout.setObjectName("gridLayout") self.label = QtWidgets.QLabel(parent=self.statisticsGroup) self.label.setObjectName("label") self.gridLayout.addWidget(self.label, 0, 0, 1, 1) self.totalCountLabel = QtWidgets.QLabel(parent=self.statisticsGroup) self.totalCountLabel.setText("0") self.totalCountLabel.setAlignment(QtCore.Qt.AlignmentFlag.AlignRight|QtCore.Qt.AlignmentFlag.AlignTrailing|QtCore.Qt.AlignmentFlag.AlignVCenter) self.totalCountLabel.setObjectName("totalCountLabel") self.gridLayout.addWidget(self.totalCountLabel, 0, 1, 1, 1) spacerItem1 = QtWidgets.QSpacerItem(183, 20, QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Minimum) self.gridLayout.addItem(spacerItem1, 0, 2, 1, 1) self.label_3 = QtWidgets.QLabel(parent=self.statisticsGroup) self.label_3.setObjectName("label_3") self.gridLayout.addWidget(self.label_3, 0, 3, 1, 1) self.excludedCountLabel = QtWidgets.QLabel(parent=self.statisticsGroup) self.excludedCountLabel.setText("0") self.excludedCountLabel.setAlignment(QtCore.Qt.AlignmentFlag.AlignRight|QtCore.Qt.AlignmentFlag.AlignTrailing|QtCore.Qt.AlignmentFlag.AlignVCenter) self.excludedCountLabel.setObjectName("excludedCountLabel") self.gridLayout.addWidget(self.excludedCountLabel, 0, 4, 1, 1) spacerItem2 = QtWidgets.QSpacerItem(182, 20, QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Minimum) self.gridLayout.addItem(spacerItem2, 0, 5, 1, 1) self.label_5 = QtWidgets.QLabel(parent=self.statisticsGroup) self.label_5.setObjectName("label_5") self.gridLayout.addWidget(self.label_5, 0, 6, 1, 1) self.failuresCountLabel = QtWidgets.QLabel(parent=self.statisticsGroup) self.failuresCountLabel.setText("0") self.failuresCountLabel.setAlignment(QtCore.Qt.AlignmentFlag.AlignRight|QtCore.Qt.AlignmentFlag.AlignTrailing|QtCore.Qt.AlignmentFlag.AlignVCenter) self.failuresCountLabel.setObjectName("failuresCountLabel") self.gridLayout.addWidget(self.failuresCountLabel, 0, 7, 1, 1) self.label_6 = QtWidgets.QLabel(parent=self.statisticsGroup) self.label_6.setObjectName("label_6") self.gridLayout.addWidget(self.label_6, 1, 0, 1, 1) self.processedCountLabel = QtWidgets.QLabel(parent=self.statisticsGroup) self.processedCountLabel.setText("0") self.processedCountLabel.setAlignment(QtCore.Qt.AlignmentFlag.AlignRight|QtCore.Qt.AlignmentFlag.AlignTrailing|QtCore.Qt.AlignmentFlag.AlignVCenter) self.processedCountLabel.setObjectName("processedCountLabel") self.gridLayout.addWidget(self.processedCountLabel, 1, 1, 1, 1) self.reformattedLabel = QtWidgets.QLabel(parent=self.statisticsGroup) self.reformattedLabel.setObjectName("reformattedLabel") self.gridLayout.addWidget(self.reformattedLabel, 1, 3, 1, 1) self.reformattedCountLabel = QtWidgets.QLabel(parent=self.statisticsGroup) self.reformattedCountLabel.setText("0") self.reformattedCountLabel.setAlignment(QtCore.Qt.AlignmentFlag.AlignRight|QtCore.Qt.AlignmentFlag.AlignTrailing|QtCore.Qt.AlignmentFlag.AlignVCenter) self.reformattedCountLabel.setObjectName("reformattedCountLabel") self.gridLayout.addWidget(self.reformattedCountLabel, 1, 4, 1, 1) self.label_4 = QtWidgets.QLabel(parent=self.statisticsGroup) self.label_4.setObjectName("label_4") self.gridLayout.addWidget(self.label_4, 1, 6, 1, 1) self.unchangedCountLabel = QtWidgets.QLabel(parent=self.statisticsGroup) self.unchangedCountLabel.setText("0") self.unchangedCountLabel.setAlignment(QtCore.Qt.AlignmentFlag.AlignRight|QtCore.Qt.AlignmentFlag.AlignTrailing|QtCore.Qt.AlignmentFlag.AlignVCenter) self.unchangedCountLabel.setObjectName("unchangedCountLabel") self.gridLayout.addWidget(self.unchangedCountLabel, 1, 7, 1, 1) self.verticalLayout.addWidget(self.statisticsGroup) self.progressBar = QtWidgets.QProgressBar(parent=BlackFormattingDialog) self.progressBar.setObjectName("progressBar") self.verticalLayout.addWidget(self.progressBar) self.buttonBox = QtWidgets.QDialogButtonBox(parent=BlackFormattingDialog) self.buttonBox.setOrientation(QtCore.Qt.Orientation.Horizontal) self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.StandardButton.Cancel|QtWidgets.QDialogButtonBox.StandardButton.Close) self.buttonBox.setObjectName("buttonBox") self.verticalLayout.addWidget(self.buttonBox) self.retranslateUi(BlackFormattingDialog) QtCore.QMetaObject.connectSlotsByName(BlackFormattingDialog) BlackFormattingDialog.setTabOrder(self.resultsList, self.statusFilterComboBox) def retranslateUi(self, BlackFormattingDialog): _translate = QtCore.QCoreApplication.translate BlackFormattingDialog.setWindowTitle(_translate("BlackFormattingDialog", "Code Formatting with Black")) self.label_2.setText(_translate("BlackFormattingDialog", "Status Filter:")) self.statusFilterComboBox.setToolTip(_translate("BlackFormattingDialog", "Select the status of items to be shown.")) self.resultsList.setSortingEnabled(True) self.resultsList.headerItem().setText(0, _translate("BlackFormattingDialog", "Status")) self.resultsList.headerItem().setText(1, _translate("BlackFormattingDialog", "File Name")) self.statisticsGroup.setTitle(_translate("BlackFormattingDialog", "Statistics")) self.label.setText(_translate("BlackFormattingDialog", "Total Files:")) self.label_3.setText(_translate("BlackFormattingDialog", "Excluded:")) self.label_5.setText(_translate("BlackFormattingDialog", "Failures:")) self.label_6.setText(_translate("BlackFormattingDialog", "Processed:")) self.reformattedLabel.setText(_translate("BlackFormattingDialog", "Reformatted:")) self.label_4.setText(_translate("BlackFormattingDialog", "Unchanged:")) self.progressBar.setFormat(_translate("BlackFormattingDialog", "%v/%m Files"))