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.
9915 | 1 | <!DOCTYPE html> |
2 | <html><head> | |
3 | <title>eric7.MicroPython.ConvertToUF2Dialog</title> | |
4 | <meta charset="UTF-8"> | |
5 | <link rel="stylesheet" href="styles.css"> | |
6 | </head> | |
7 | <body> | |
8 | <a NAME="top" ID="top"></a> | |
9 | <h1>eric7.MicroPython.ConvertToUF2Dialog</h1> | |
10 | <p> | |
11 | Module implementing a dialog to convert a .hex or .bin firmware file to .uf2. | |
12 | </p> | |
10479
856476537696
Fine tuned the source code documentation template and regenerated the source code documentation.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
9915
diff
changeset
|
13 | |
9915 | 14 | <h3>Global Attributes</h3> |
15 | <table> | |
16 | <tr><td>None</td></tr> | |
17 | </table> | |
10479
856476537696
Fine tuned the source code documentation template and regenerated the source code documentation.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
9915
diff
changeset
|
18 | |
9915 | 19 | <h3>Classes</h3> |
20 | <table> | |
21 | <tr> | |
22 | <td><a href="#ConvertToUF2Dialog">ConvertToUF2Dialog</a></td> | |
23 | <td>Class implementing a dialog to convert a .hex or .bin firmware file to .uf2.</td> | |
24 | </tr> | |
25 | </table> | |
10479
856476537696
Fine tuned the source code documentation template and regenerated the source code documentation.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
9915
diff
changeset
|
26 | |
9915 | 27 | <h3>Functions</h3> |
28 | <table> | |
29 | <tr><td>None</td></tr> | |
30 | </table> | |
10479
856476537696
Fine tuned the source code documentation template and regenerated the source code documentation.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
9915
diff
changeset
|
31 | |
9915 | 32 | <hr /> |
33 | <hr /> | |
34 | <a NAME="ConvertToUF2Dialog" ID="ConvertToUF2Dialog"></a> | |
35 | <h2>ConvertToUF2Dialog</h2> | |
36 | <p> | |
37 | Class implementing a dialog to convert a .hex or .bin firmware file to .uf2. | |
38 | </p> | |
10479
856476537696
Fine tuned the source code documentation template and regenerated the source code documentation.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
9915
diff
changeset
|
39 | |
9915 | 40 | <h3>Derived from</h3> |
41 | QDialog, Ui_ConvertToUF2Dialog | |
42 | <h3>Class Attributes</h3> | |
10479
856476537696
Fine tuned the source code documentation template and regenerated the source code documentation.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
9915
diff
changeset
|
43 | <table> |
856476537696
Fine tuned the source code documentation template and regenerated the source code documentation.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
9915
diff
changeset
|
44 | <tr><td>ConvertScript</td></tr> |
856476537696
Fine tuned the source code documentation template and regenerated the source code documentation.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
9915
diff
changeset
|
45 | <tr><td>FamiliesFile</td></tr> |
856476537696
Fine tuned the source code documentation template and regenerated the source code documentation.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
9915
diff
changeset
|
46 | </table> |
9915 | 47 | |
48 | <h3>Class Methods</h3> | |
49 | <table> | |
50 | <tr><td>None</td></tr> | |
51 | </table> | |
10479
856476537696
Fine tuned the source code documentation template and regenerated the source code documentation.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
9915
diff
changeset
|
52 | |
9915 | 53 | <h3>Methods</h3> |
54 | <table> | |
55 | <tr> | |
56 | <td><a href="#ConvertToUF2Dialog.__init__">ConvertToUF2Dialog</a></td> | |
57 | <td>Constructor</td> | |
58 | </tr> | |
59 | <tr> | |
60 | <td><a href="#ConvertToUF2Dialog.__conversionFinished">__conversionFinished</a></td> | |
61 | <td>Private slot handling the end of the conversion process.</td> | |
62 | </tr> | |
63 | <tr> | |
64 | <td><a href="#ConvertToUF2Dialog.__populateFamilyComboBox">__populateFamilyComboBox</a></td> | |
65 | <td>Private method to populate the chip family combo box with values read from 'uf2families.json' file.</td> | |
66 | </tr> | |
67 | <tr> | |
68 | <td><a href="#ConvertToUF2Dialog.__readError">__readError</a></td> | |
69 | <td>Private slot to read the standard error channel of the conversion process.</td> | |
70 | </tr> | |
71 | <tr> | |
72 | <td><a href="#ConvertToUF2Dialog.__readOutput">__readOutput</a></td> | |
73 | <td>Private slot to read the standard output channel of the conversion process.</td> | |
74 | </tr> | |
75 | <tr> | |
76 | <td><a href="#ConvertToUF2Dialog.__updateConvertButton">__updateConvertButton</a></td> | |
77 | <td>Private method to set the enabled status of the 'Convert' button.</td> | |
78 | </tr> | |
79 | <tr> | |
80 | <td><a href="#ConvertToUF2Dialog.on_convertButton_clicked">on_convertButton_clicked</a></td> | |
81 | <td>Private slot activating the conversion process.</td> | |
82 | </tr> | |
83 | <tr> | |
84 | <td><a href="#ConvertToUF2Dialog.on_familiesComboBox_currentTextChanged">on_familiesComboBox_currentTextChanged</a></td> | |
85 | <td>Private slot handling the selection of a chip family.</td> | |
86 | </tr> | |
87 | <tr> | |
88 | <td><a href="#ConvertToUF2Dialog.on_firmwarePicker_textChanged">on_firmwarePicker_textChanged</a></td> | |
89 | <td>Private slot handling a change of the firmware file name.</td> | |
90 | </tr> | |
91 | </table> | |
10479
856476537696
Fine tuned the source code documentation template and regenerated the source code documentation.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
9915
diff
changeset
|
92 | |
9915 | 93 | <h3>Static Methods</h3> |
94 | <table> | |
95 | <tr><td>None</td></tr> | |
96 | </table> | |
97 | ||
10479
856476537696
Fine tuned the source code documentation template and regenerated the source code documentation.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
9915
diff
changeset
|
98 | |
9915 | 99 | <a NAME="ConvertToUF2Dialog.__init__" ID="ConvertToUF2Dialog.__init__"></a> |
100 | <h4>ConvertToUF2Dialog (Constructor)</h4> | |
101 | <b>ConvertToUF2Dialog</b>(<i>parent=None</i>) | |
102 | <p> | |
103 | Constructor | |
104 | </p> | |
10479
856476537696
Fine tuned the source code documentation template and regenerated the source code documentation.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
9915
diff
changeset
|
105 | |
9915 | 106 | <dl> |
107 | ||
108 | <dt><i>parent</i> (QWidget (optional))</dt> | |
109 | <dd> | |
110 | reference to the parent widget (defaults to None) | |
111 | </dd> | |
112 | </dl> | |
113 | <a NAME="ConvertToUF2Dialog.__conversionFinished" ID="ConvertToUF2Dialog.__conversionFinished"></a> | |
114 | <h4>ConvertToUF2Dialog.__conversionFinished</h4> | |
10690
fab36645aa7d
Changed the source code and the source code documentation to improve the indication of unused method/function arguments.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
10479
diff
changeset
|
115 | <b>__conversionFinished</b>(<i>_exitCode, _exitStatus</i>) |
9915 | 116 | <p> |
117 | Private slot handling the end of the conversion process. | |
118 | </p> | |
10479
856476537696
Fine tuned the source code documentation template and regenerated the source code documentation.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
9915
diff
changeset
|
119 | |
9915 | 120 | <dl> |
121 | ||
10690
fab36645aa7d
Changed the source code and the source code documentation to improve the indication of unused method/function arguments.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
10479
diff
changeset
|
122 | <dt><i>_exitCode</i> (int)</dt> |
9915 | 123 | <dd> |
10690
fab36645aa7d
Changed the source code and the source code documentation to improve the indication of unused method/function arguments.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
10479
diff
changeset
|
124 | exit code of the process (unused) |
9915 | 125 | </dd> |
10690
fab36645aa7d
Changed the source code and the source code documentation to improve the indication of unused method/function arguments.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
10479
diff
changeset
|
126 | <dt><i>_exitStatus</i> (QProcess.ExitStatus)</dt> |
9915 | 127 | <dd> |
10690
fab36645aa7d
Changed the source code and the source code documentation to improve the indication of unused method/function arguments.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
10479
diff
changeset
|
128 | exit status of the process (unused) |
9915 | 129 | </dd> |
130 | </dl> | |
131 | <a NAME="ConvertToUF2Dialog.__populateFamilyComboBox" ID="ConvertToUF2Dialog.__populateFamilyComboBox"></a> | |
132 | <h4>ConvertToUF2Dialog.__populateFamilyComboBox</h4> | |
133 | <b>__populateFamilyComboBox</b>(<i></i>) | |
134 | <p> | |
135 | Private method to populate the chip family combo box with values read from | |
136 | 'uf2families.json' file. | |
137 | </p> | |
10479
856476537696
Fine tuned the source code documentation template and regenerated the source code documentation.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
9915
diff
changeset
|
138 | |
9915 | 139 | <a NAME="ConvertToUF2Dialog.__readError" ID="ConvertToUF2Dialog.__readError"></a> |
140 | <h4>ConvertToUF2Dialog.__readError</h4> | |
141 | <b>__readError</b>(<i></i>) | |
142 | <p> | |
143 | Private slot to read the standard error channel of the conversion process. | |
144 | </p> | |
10479
856476537696
Fine tuned the source code documentation template and regenerated the source code documentation.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
9915
diff
changeset
|
145 | |
9915 | 146 | <a NAME="ConvertToUF2Dialog.__readOutput" ID="ConvertToUF2Dialog.__readOutput"></a> |
147 | <h4>ConvertToUF2Dialog.__readOutput</h4> | |
148 | <b>__readOutput</b>(<i></i>) | |
149 | <p> | |
150 | Private slot to read the standard output channel of the conversion process. | |
151 | </p> | |
10479
856476537696
Fine tuned the source code documentation template and regenerated the source code documentation.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
9915
diff
changeset
|
152 | |
9915 | 153 | <a NAME="ConvertToUF2Dialog.__updateConvertButton" ID="ConvertToUF2Dialog.__updateConvertButton"></a> |
154 | <h4>ConvertToUF2Dialog.__updateConvertButton</h4> | |
155 | <b>__updateConvertButton</b>(<i></i>) | |
156 | <p> | |
157 | Private method to set the enabled status of the 'Convert' button. | |
158 | </p> | |
10479
856476537696
Fine tuned the source code documentation template and regenerated the source code documentation.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
9915
diff
changeset
|
159 | |
9915 | 160 | <a NAME="ConvertToUF2Dialog.on_convertButton_clicked" ID="ConvertToUF2Dialog.on_convertButton_clicked"></a> |
161 | <h4>ConvertToUF2Dialog.on_convertButton_clicked</h4> | |
162 | <b>on_convertButton_clicked</b>(<i></i>) | |
163 | <p> | |
164 | Private slot activating the conversion process. | |
165 | </p> | |
10479
856476537696
Fine tuned the source code documentation template and regenerated the source code documentation.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
9915
diff
changeset
|
166 | |
9915 | 167 | <a NAME="ConvertToUF2Dialog.on_familiesComboBox_currentTextChanged" ID="ConvertToUF2Dialog.on_familiesComboBox_currentTextChanged"></a> |
168 | <h4>ConvertToUF2Dialog.on_familiesComboBox_currentTextChanged</h4> | |
169 | <b>on_familiesComboBox_currentTextChanged</b>(<i>family</i>) | |
170 | <p> | |
171 | Private slot handling the selection of a chip family. | |
172 | </p> | |
10479
856476537696
Fine tuned the source code documentation template and regenerated the source code documentation.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
9915
diff
changeset
|
173 | |
9915 | 174 | <dl> |
175 | ||
176 | <dt><i>family</i> (str)</dt> | |
177 | <dd> | |
178 | name of the selected chip family | |
179 | </dd> | |
180 | </dl> | |
181 | <a NAME="ConvertToUF2Dialog.on_firmwarePicker_textChanged" ID="ConvertToUF2Dialog.on_firmwarePicker_textChanged"></a> | |
182 | <h4>ConvertToUF2Dialog.on_firmwarePicker_textChanged</h4> | |
183 | <b>on_firmwarePicker_textChanged</b>(<i>firmware</i>) | |
184 | <p> | |
185 | Private slot handling a change of the firmware file name. | |
186 | </p> | |
10479
856476537696
Fine tuned the source code documentation template and regenerated the source code documentation.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
9915
diff
changeset
|
187 | |
9915 | 188 | <dl> |
189 | ||
190 | <dt><i>firmware</i> (str)</dt> | |
191 | <dd> | |
192 | name of the firmware file | |
193 | </dd> | |
194 | </dl> | |
195 | <div align="right"><a href="#top">Up</a></div> | |
196 | <hr /> | |
10479
856476537696
Fine tuned the source code documentation template and regenerated the source code documentation.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
9915
diff
changeset
|
197 | </body></html> |