src/eric7/MicroPython/Ui_UF2FlashDialog.py

branch
eric7
changeset 10743
5d3a5a05114e
child 10745
2921faddeaec
equal deleted inserted replaced
10742:7aa41173b44b 10743:5d3a5a05114e
1 # Form implementation generated from reading ui file '/home/detlev/Development/Python/Eric/eric7_default/src/eric7/MicroPython/UF2FlashDialog.ui'
2 #
3 # Created by: PyQt6 UI code generator 6.7.0
4 #
5 # WARNING: Any manual changes made to this file will be lost when pyuic6 is
6 # run again. Do not edit this file unless you know what you are doing.
7
8
9 from PyQt6 import QtCore, QtGui, QtWidgets
10
11
12 class Ui_UF2FlashDialog(object):
13 def setupUi(self, UF2FlashDialog):
14 UF2FlashDialog.setObjectName("UF2FlashDialog")
15 UF2FlashDialog.resize(600, 600)
16 UF2FlashDialog.setSizeGripEnabled(True)
17 self.verticalLayout_2 = QtWidgets.QVBoxLayout(UF2FlashDialog)
18 self.verticalLayout_2.setObjectName("verticalLayout_2")
19 self.gridLayout = QtWidgets.QGridLayout()
20 self.gridLayout.setObjectName("gridLayout")
21 self.label = QtWidgets.QLabel(parent=UF2FlashDialog)
22 self.label.setObjectName("label")
23 self.gridLayout.addWidget(self.label, 0, 0, 1, 1)
24 self.devicesComboBox = QtWidgets.QComboBox(parent=UF2FlashDialog)
25 sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Fixed)
26 sizePolicy.setHorizontalStretch(0)
27 sizePolicy.setVerticalStretch(0)
28 sizePolicy.setHeightForWidth(self.devicesComboBox.sizePolicy().hasHeightForWidth())
29 self.devicesComboBox.setSizePolicy(sizePolicy)
30 self.devicesComboBox.setObjectName("devicesComboBox")
31 self.gridLayout.addWidget(self.devicesComboBox, 0, 1, 1, 2)
32 self.label_3 = QtWidgets.QLabel(parent=UF2FlashDialog)
33 self.label_3.setObjectName("label_3")
34 self.gridLayout.addWidget(self.label_3, 1, 0, 1, 1)
35 self.firmwarePicker = EricPathPicker(parent=UF2FlashDialog)
36 sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Fixed)
37 sizePolicy.setHorizontalStretch(0)
38 sizePolicy.setVerticalStretch(0)
39 sizePolicy.setHeightForWidth(self.firmwarePicker.sizePolicy().hasHeightForWidth())
40 self.firmwarePicker.setSizePolicy(sizePolicy)
41 self.firmwarePicker.setFocusPolicy(QtCore.Qt.FocusPolicy.WheelFocus)
42 self.firmwarePicker.setObjectName("firmwarePicker")
43 self.gridLayout.addWidget(self.firmwarePicker, 1, 1, 1, 2)
44 self.label_2 = QtWidgets.QLabel(parent=UF2FlashDialog)
45 self.label_2.setObjectName("label_2")
46 self.gridLayout.addWidget(self.label_2, 2, 0, 1, 1)
47 self.bootPicker = EricPathPicker(parent=UF2FlashDialog)
48 sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Fixed)
49 sizePolicy.setHorizontalStretch(0)
50 sizePolicy.setVerticalStretch(0)
51 sizePolicy.setHeightForWidth(self.bootPicker.sizePolicy().hasHeightForWidth())
52 self.bootPicker.setSizePolicy(sizePolicy)
53 self.bootPicker.setFocusPolicy(QtCore.Qt.FocusPolicy.WheelFocus)
54 self.bootPicker.setObjectName("bootPicker")
55 self.gridLayout.addWidget(self.bootPicker, 2, 1, 1, 1)
56 self.searchBootButton = QtWidgets.QToolButton(parent=UF2FlashDialog)
57 self.searchBootButton.setObjectName("searchBootButton")
58 self.gridLayout.addWidget(self.searchBootButton, 2, 2, 1, 1)
59 self.verticalLayout_2.addLayout(self.gridLayout)
60 self.flashButton = QtWidgets.QPushButton(parent=UF2FlashDialog)
61 self.flashButton.setObjectName("flashButton")
62 self.verticalLayout_2.addWidget(self.flashButton)
63 self.infoFrame = QtWidgets.QFrame(parent=UF2FlashDialog)
64 self.infoFrame.setFrameShape(QtWidgets.QFrame.Shape.NoFrame)
65 self.infoFrame.setFrameShadow(QtWidgets.QFrame.Shadow.Raised)
66 self.infoFrame.setObjectName("infoFrame")
67 self.verticalLayout = QtWidgets.QVBoxLayout(self.infoFrame)
68 self.verticalLayout.setContentsMargins(0, 0, 0, 0)
69 self.verticalLayout.setObjectName("verticalLayout")
70 self.infoLabel = QtWidgets.QLabel(parent=self.infoFrame)
71 self.infoLabel.setText("")
72 self.infoLabel.setObjectName("infoLabel")
73 self.verticalLayout.addWidget(self.infoLabel)
74 self.infoEdit = QtWidgets.QTextEdit(parent=self.infoFrame)
75 self.infoEdit.setReadOnly(False)
76 self.infoEdit.setObjectName("infoEdit")
77 self.verticalLayout.addWidget(self.infoEdit)
78 self.verticalLayout_2.addWidget(self.infoFrame)
79 self.horizontalLayout = QtWidgets.QHBoxLayout()
80 self.horizontalLayout.setObjectName("horizontalLayout")
81 self.refreshButton = QtWidgets.QPushButton(parent=UF2FlashDialog)
82 self.refreshButton.setObjectName("refreshButton")
83 self.horizontalLayout.addWidget(self.refreshButton)
84 self.buttonBox = QtWidgets.QDialogButtonBox(parent=UF2FlashDialog)
85 self.buttonBox.setOrientation(QtCore.Qt.Orientation.Horizontal)
86 self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.StandardButton.Close)
87 self.buttonBox.setObjectName("buttonBox")
88 self.horizontalLayout.addWidget(self.buttonBox)
89 self.verticalLayout_2.addLayout(self.horizontalLayout)
90
91 self.retranslateUi(UF2FlashDialog)
92 self.buttonBox.accepted.connect(UF2FlashDialog.accept) # type: ignore
93 self.buttonBox.rejected.connect(UF2FlashDialog.reject) # type: ignore
94 QtCore.QMetaObject.connectSlotsByName(UF2FlashDialog)
95 UF2FlashDialog.setTabOrder(self.devicesComboBox, self.firmwarePicker)
96 UF2FlashDialog.setTabOrder(self.firmwarePicker, self.bootPicker)
97 UF2FlashDialog.setTabOrder(self.bootPicker, self.searchBootButton)
98 UF2FlashDialog.setTabOrder(self.searchBootButton, self.flashButton)
99 UF2FlashDialog.setTabOrder(self.flashButton, self.infoEdit)
100 UF2FlashDialog.setTabOrder(self.infoEdit, self.refreshButton)
101
102 def retranslateUi(self, UF2FlashDialog):
103 _translate = QtCore.QCoreApplication.translate
104 UF2FlashDialog.setWindowTitle(_translate("UF2FlashDialog", "Flash UF2 Device"))
105 self.label.setText(_translate("UF2FlashDialog", "Detected Devices:"))
106 self.devicesComboBox.setToolTip(_translate("UF2FlashDialog", "Select the device to be flashed"))
107 self.devicesComboBox.setPlaceholderText(_translate("UF2FlashDialog", "Select Device"))
108 self.label_3.setText(_translate("UF2FlashDialog", "MicroPython:"))
109 self.firmwarePicker.setToolTip(_translate("UF2FlashDialog", "Enter the path of the MicroPython / CircuitPython firmware file"))
110 self.label_2.setText(_translate("UF2FlashDialog", "\'Boot\' Volume:"))
111 self.bootPicker.setToolTip(_translate("UF2FlashDialog", "Enter the path of the bootloader volume"))
112 self.searchBootButton.setToolTip(_translate("UF2FlashDialog", "Press to check for all known boot volume names."))
113 self.flashButton.setText(_translate("UF2FlashDialog", "Flash MicroPython / CircuitPython"))
114 self.refreshButton.setText(_translate("UF2FlashDialog", "Refresh"))
115 from eric7.EricWidgets.EricPathPicker import EricPathPicker

eric ide

mercurial