5 <link rel="stylesheet" href="styles.css"> |
5 <link rel="stylesheet" href="styles.css"> |
6 </head> |
6 </head> |
7 <body> |
7 <body> |
8 <a NAME="top" ID="top"></a> |
8 <a NAME="top" ID="top"></a> |
9 <h1>eric7.MicroPython.Devices.EspDialogs.EspFirmwareSelectionDialog</h1> |
9 <h1>eric7.MicroPython.Devices.EspDialogs.EspFirmwareSelectionDialog</h1> |
10 |
|
11 <p> |
10 <p> |
12 Module implementing a dialog to select the ESP chip type and the firmware to |
11 Module implementing a dialog to select the ESP chip type and the firmware to |
13 be flashed. |
12 be flashed. |
14 </p> |
13 </p> |
|
14 |
15 <h3>Global Attributes</h3> |
15 <h3>Global Attributes</h3> |
16 |
|
17 <table> |
16 <table> |
18 <tr><td>None</td></tr> |
17 <tr><td>None</td></tr> |
19 </table> |
18 </table> |
|
19 |
20 <h3>Classes</h3> |
20 <h3>Classes</h3> |
21 |
|
22 <table> |
21 <table> |
23 |
|
24 <tr> |
22 <tr> |
25 <td><a href="#EspFirmwareSelectionDialog">EspFirmwareSelectionDialog</a></td> |
23 <td><a href="#EspFirmwareSelectionDialog">EspFirmwareSelectionDialog</a></td> |
26 <td>Class implementing a dialog to select the ESP chip type and the firmware to be flashed.</td> |
24 <td>Class implementing a dialog to select the ESP chip type and the firmware to be flashed.</td> |
27 </tr> |
25 </tr> |
28 </table> |
26 </table> |
|
27 |
29 <h3>Functions</h3> |
28 <h3>Functions</h3> |
30 |
|
31 <table> |
29 <table> |
32 <tr><td>None</td></tr> |
30 <tr><td>None</td></tr> |
33 </table> |
31 </table> |
|
32 |
34 <hr /> |
33 <hr /> |
35 <hr /> |
34 <hr /> |
36 <a NAME="EspFirmwareSelectionDialog" ID="EspFirmwareSelectionDialog"></a> |
35 <a NAME="EspFirmwareSelectionDialog" ID="EspFirmwareSelectionDialog"></a> |
37 <h2>EspFirmwareSelectionDialog</h2> |
36 <h2>EspFirmwareSelectionDialog</h2> |
38 |
|
39 <p> |
37 <p> |
40 Class implementing a dialog to select the ESP chip type and the firmware to |
38 Class implementing a dialog to select the ESP chip type and the firmware to |
41 be flashed. |
39 be flashed. |
42 </p> |
40 </p> |
|
41 |
43 <h3>Derived from</h3> |
42 <h3>Derived from</h3> |
44 QDialog, Ui_EspFirmwareSelectionDialog |
43 QDialog, Ui_EspFirmwareSelectionDialog |
45 <h3>Class Attributes</h3> |
44 <h3>Class Attributes</h3> |
|
45 <table> |
|
46 <tr><td>Chips</td></tr> |
|
47 <tr><td>FlashAddresses</td></tr> |
|
48 <tr><td>FlashModes</td></tr> |
|
49 </table> |
46 |
50 |
47 <table> |
|
48 <tr><td>Chips</td></tr><tr><td>FlashAddresses</td></tr><tr><td>FlashModes</td></tr> |
|
49 </table> |
|
50 <h3>Class Methods</h3> |
51 <h3>Class Methods</h3> |
51 |
|
52 <table> |
52 <table> |
53 <tr><td>None</td></tr> |
53 <tr><td>None</td></tr> |
54 </table> |
54 </table> |
|
55 |
55 <h3>Methods</h3> |
56 <h3>Methods</h3> |
56 |
|
57 <table> |
57 <table> |
58 |
|
59 <tr> |
58 <tr> |
60 <td><a href="#EspFirmwareSelectionDialog.__init__">EspFirmwareSelectionDialog</a></td> |
59 <td><a href="#EspFirmwareSelectionDialog.__init__">EspFirmwareSelectionDialog</a></td> |
61 <td>Constructor</td> |
60 <td>Constructor</td> |
62 </tr> |
61 </tr> |
63 <tr> |
62 <tr> |
79 <tr> |
78 <tr> |
80 <td><a href="#EspFirmwareSelectionDialog.on_firmwarePicker_textChanged">on_firmwarePicker_textChanged</a></td> |
79 <td><a href="#EspFirmwareSelectionDialog.on_firmwarePicker_textChanged">on_firmwarePicker_textChanged</a></td> |
81 <td>Private slot handling a change of the firmware path.</td> |
80 <td>Private slot handling a change of the firmware path.</td> |
82 </tr> |
81 </tr> |
83 </table> |
82 </table> |
|
83 |
84 <h3>Static Methods</h3> |
84 <h3>Static Methods</h3> |
85 |
|
86 <table> |
85 <table> |
87 <tr><td>None</td></tr> |
86 <tr><td>None</td></tr> |
88 </table> |
87 </table> |
89 |
88 |
|
89 |
90 <a NAME="EspFirmwareSelectionDialog.__init__" ID="EspFirmwareSelectionDialog.__init__"></a> |
90 <a NAME="EspFirmwareSelectionDialog.__init__" ID="EspFirmwareSelectionDialog.__init__"></a> |
91 <h4>EspFirmwareSelectionDialog (Constructor)</h4> |
91 <h4>EspFirmwareSelectionDialog (Constructor)</h4> |
92 <b>EspFirmwareSelectionDialog</b>(<i>addon=False, parent=None</i>) |
92 <b>EspFirmwareSelectionDialog</b>(<i>addon=False, parent=None</i>) |
93 |
|
94 <p> |
93 <p> |
95 Constructor |
94 Constructor |
96 </p> |
95 </p> |
|
96 |
97 <dl> |
97 <dl> |
98 |
98 |
99 <dt><i>addon</i> (bool)</dt> |
99 <dt><i>addon</i> (bool)</dt> |
100 <dd> |
100 <dd> |
101 flag indicating an addon firmware |
101 flag indicating an addon firmware |
106 </dd> |
106 </dd> |
107 </dl> |
107 </dl> |
108 <a NAME="EspFirmwareSelectionDialog.__updateOkButton" ID="EspFirmwareSelectionDialog.__updateOkButton"></a> |
108 <a NAME="EspFirmwareSelectionDialog.__updateOkButton" ID="EspFirmwareSelectionDialog.__updateOkButton"></a> |
109 <h4>EspFirmwareSelectionDialog.__updateOkButton</h4> |
109 <h4>EspFirmwareSelectionDialog.__updateOkButton</h4> |
110 <b>__updateOkButton</b>(<i></i>) |
110 <b>__updateOkButton</b>(<i></i>) |
111 |
|
112 <p> |
111 <p> |
113 Private method to update the state of the OK button. |
112 Private method to update the state of the OK button. |
114 </p> |
113 </p> |
|
114 |
115 <a NAME="EspFirmwareSelectionDialog.getData" ID="EspFirmwareSelectionDialog.getData"></a> |
115 <a NAME="EspFirmwareSelectionDialog.getData" ID="EspFirmwareSelectionDialog.getData"></a> |
116 <h4>EspFirmwareSelectionDialog.getData</h4> |
116 <h4>EspFirmwareSelectionDialog.getData</h4> |
117 <b>getData</b>(<i></i>) |
117 <b>getData</b>(<i></i>) |
118 |
|
119 <p> |
118 <p> |
120 Public method to get the entered data. |
119 Public method to get the entered data. |
121 </p> |
120 </p> |
|
121 |
122 <dl> |
122 <dl> |
123 <dt>Return:</dt> |
123 <dt>Return:</dt> |
124 <dd> |
124 <dd> |
125 tuple containing the selected chip type, the path of the |
125 tuple containing the selected chip type, the path of the |
126 firmware file, the baud rate, the flash mode and the flash |
126 firmware file, the baud rate, the flash mode and the flash |
134 </dd> |
134 </dd> |
135 </dl> |
135 </dl> |
136 <a NAME="EspFirmwareSelectionDialog.on_addressEdit_textChanged" ID="EspFirmwareSelectionDialog.on_addressEdit_textChanged"></a> |
136 <a NAME="EspFirmwareSelectionDialog.on_addressEdit_textChanged" ID="EspFirmwareSelectionDialog.on_addressEdit_textChanged"></a> |
137 <h4>EspFirmwareSelectionDialog.on_addressEdit_textChanged</h4> |
137 <h4>EspFirmwareSelectionDialog.on_addressEdit_textChanged</h4> |
138 <b>on_addressEdit_textChanged</b>(<i>address</i>) |
138 <b>on_addressEdit_textChanged</b>(<i>address</i>) |
139 |
|
140 <p> |
139 <p> |
141 Private slot handling a change of the address. |
140 Private slot handling a change of the address. |
142 </p> |
141 </p> |
|
142 |
143 <dl> |
143 <dl> |
144 |
144 |
145 <dt><i>address</i> (str)</dt> |
145 <dt><i>address</i> (str)</dt> |
146 <dd> |
146 <dd> |
147 entered address |
147 entered address |
148 </dd> |
148 </dd> |
149 </dl> |
149 </dl> |
150 <a NAME="EspFirmwareSelectionDialog.on_espComboBox_currentTextChanged" ID="EspFirmwareSelectionDialog.on_espComboBox_currentTextChanged"></a> |
150 <a NAME="EspFirmwareSelectionDialog.on_espComboBox_currentTextChanged" ID="EspFirmwareSelectionDialog.on_espComboBox_currentTextChanged"></a> |
151 <h4>EspFirmwareSelectionDialog.on_espComboBox_currentTextChanged</h4> |
151 <h4>EspFirmwareSelectionDialog.on_espComboBox_currentTextChanged</h4> |
152 <b>on_espComboBox_currentTextChanged</b>(<i>chip</i>) |
152 <b>on_espComboBox_currentTextChanged</b>(<i>chip</i>) |
153 |
|
154 <p> |
153 <p> |
155 Private slot to handle the selection of a chip type. |
154 Private slot to handle the selection of a chip type. |
156 </p> |
155 </p> |
|
156 |
157 <dl> |
157 <dl> |
158 |
158 |
159 <dt><i>chip</i> (str)</dt> |
159 <dt><i>chip</i> (str)</dt> |
160 <dd> |
160 <dd> |
161 selected chip type |
161 selected chip type |
162 </dd> |
162 </dd> |
163 </dl> |
163 </dl> |
164 <a NAME="EspFirmwareSelectionDialog.on_firmwarePicker_textChanged" ID="EspFirmwareSelectionDialog.on_firmwarePicker_textChanged"></a> |
164 <a NAME="EspFirmwareSelectionDialog.on_firmwarePicker_textChanged" ID="EspFirmwareSelectionDialog.on_firmwarePicker_textChanged"></a> |
165 <h4>EspFirmwareSelectionDialog.on_firmwarePicker_textChanged</h4> |
165 <h4>EspFirmwareSelectionDialog.on_firmwarePicker_textChanged</h4> |
166 <b>on_firmwarePicker_textChanged</b>(<i>firmware</i>) |
166 <b>on_firmwarePicker_textChanged</b>(<i>firmware</i>) |
167 |
|
168 <p> |
167 <p> |
169 Private slot handling a change of the firmware path. |
168 Private slot handling a change of the firmware path. |
170 </p> |
169 </p> |
|
170 |
171 <dl> |
171 <dl> |
172 |
172 |
173 <dt><i>firmware</i> (str)</dt> |
173 <dt><i>firmware</i> (str)</dt> |
174 <dd> |
174 <dd> |
175 path to the firmware |
175 path to the firmware |