|
1 <!DOCTYPE html> |
|
2 <html><head> |
|
3 <title>eric6.MicroPython.EspFirmwareSelectionDialog</title> |
|
4 <meta charset="UTF-8"> |
|
5 <style> |
|
6 body { |
|
7 background: #EDECE6; |
|
8 margin: 0em 1em 10em 1em; |
|
9 color: black; |
|
10 } |
|
11 |
|
12 h1 { color: white; background: #85774A; } |
|
13 h2 { color: white; background: #85774A; } |
|
14 h3 { color: white; background: #9D936E; } |
|
15 h4 { color: white; background: #9D936E; } |
|
16 |
|
17 a { color: #BA6D36; } |
|
18 |
|
19 </style> |
|
20 </head> |
|
21 <body><a NAME="top" ID="top"></a> |
|
22 <h1>eric6.MicroPython.EspFirmwareSelectionDialog</h1> |
|
23 <p> |
|
24 Module implementing a dialog to select the ESP chip type and the firmware to |
|
25 be flashed. |
|
26 </p> |
|
27 <h3>Global Attributes</h3> |
|
28 <table> |
|
29 <tr><td>None</td></tr> |
|
30 </table> |
|
31 <h3>Classes</h3> |
|
32 <table> |
|
33 <tr> |
|
34 <td><a href="#EspFirmwareSelectionDialog">EspFirmwareSelectionDialog</a></td> |
|
35 <td>Class implementing a dialog to select the ESP chip type and the firmware to be flashed.</td> |
|
36 </tr> |
|
37 </table> |
|
38 <h3>Functions</h3> |
|
39 <table> |
|
40 <tr><td>None</td></tr> |
|
41 </table> |
|
42 <hr /><hr /> |
|
43 <a NAME="EspFirmwareSelectionDialog" ID="EspFirmwareSelectionDialog"></a> |
|
44 <h2>EspFirmwareSelectionDialog</h2> |
|
45 <p> |
|
46 Class implementing a dialog to select the ESP chip type and the firmware to |
|
47 be flashed. |
|
48 </p> |
|
49 <h3>Derived from</h3> |
|
50 QDialog, Ui_EspFirmwareSelectionDialog |
|
51 <h3>Class Attributes</h3> |
|
52 <table> |
|
53 <tr><td>None</td></tr> |
|
54 </table> |
|
55 <h3>Class Methods</h3> |
|
56 <table> |
|
57 <tr><td>None</td></tr> |
|
58 </table> |
|
59 <h3>Methods</h3> |
|
60 <table> |
|
61 <tr> |
|
62 <td><a href="#EspFirmwareSelectionDialog.__init__">EspFirmwareSelectionDialog</a></td> |
|
63 <td>Constructor</td> |
|
64 </tr><tr> |
|
65 <td><a href="#EspFirmwareSelectionDialog.__updateOkButton">__updateOkButton</a></td> |
|
66 <td>Private method to update the state of the OK button.</td> |
|
67 </tr><tr> |
|
68 <td><a href="#EspFirmwareSelectionDialog.getData">getData</a></td> |
|
69 <td>Public method to get the entered data.</td> |
|
70 </tr><tr> |
|
71 <td><a href="#EspFirmwareSelectionDialog.on_espComboBox_currentTextChanged">on_espComboBox_currentTextChanged</a></td> |
|
72 <td>Private slot to handle the selection of a chip type.</td> |
|
73 </tr><tr> |
|
74 <td><a href="#EspFirmwareSelectionDialog.on_firmwarePicker_textChanged">on_firmwarePicker_textChanged</a></td> |
|
75 <td>Private slot handling a change of the firmware path.</td> |
|
76 </tr> |
|
77 </table> |
|
78 <h3>Static Methods</h3> |
|
79 <table> |
|
80 <tr><td>None</td></tr> |
|
81 </table> |
|
82 <a NAME="EspFirmwareSelectionDialog.__init__" ID="EspFirmwareSelectionDialog.__init__"></a> |
|
83 <h4>EspFirmwareSelectionDialog (Constructor)</h4> |
|
84 <b>EspFirmwareSelectionDialog</b>(<i>addon=False, parent=None</i>) |
|
85 <p> |
|
86 Constructor |
|
87 </p><dl> |
|
88 <dt><i>addon</i> (bool)</dt> |
|
89 <dd> |
|
90 flag indicating an addon firmware |
|
91 </dd><dt><i>parent</i> (QWidget)</dt> |
|
92 <dd> |
|
93 reference to the parent widget |
|
94 </dd> |
|
95 </dl><a NAME="EspFirmwareSelectionDialog.__updateOkButton" ID="EspFirmwareSelectionDialog.__updateOkButton"></a> |
|
96 <h4>EspFirmwareSelectionDialog.__updateOkButton</h4> |
|
97 <b>__updateOkButton</b>(<i></i>) |
|
98 <p> |
|
99 Private method to update the state of the OK button. |
|
100 </p><a NAME="EspFirmwareSelectionDialog.getData" ID="EspFirmwareSelectionDialog.getData"></a> |
|
101 <h4>EspFirmwareSelectionDialog.getData</h4> |
|
102 <b>getData</b>(<i></i>) |
|
103 <p> |
|
104 Public method to get the entered data. |
|
105 </p><dl> |
|
106 <dt>Returns:</dt> |
|
107 <dd> |
|
108 tuple containing the selected chip type, the path of the |
|
109 firmware file and the flash address |
|
110 </dd> |
|
111 </dl><dl> |
|
112 <dt>Return Type:</dt> |
|
113 <dd> |
|
114 tuple of (str, str, str) |
|
115 </dd> |
|
116 </dl><a NAME="EspFirmwareSelectionDialog.on_espComboBox_currentTextChanged" ID="EspFirmwareSelectionDialog.on_espComboBox_currentTextChanged"></a> |
|
117 <h4>EspFirmwareSelectionDialog.on_espComboBox_currentTextChanged</h4> |
|
118 <b>on_espComboBox_currentTextChanged</b>(<i>chip</i>) |
|
119 <p> |
|
120 Private slot to handle the selection of a chip type. |
|
121 </p><dl> |
|
122 <dt><i>chip</i> (str)</dt> |
|
123 <dd> |
|
124 selected chip type |
|
125 </dd> |
|
126 </dl><a NAME="EspFirmwareSelectionDialog.on_firmwarePicker_textChanged" ID="EspFirmwareSelectionDialog.on_firmwarePicker_textChanged"></a> |
|
127 <h4>EspFirmwareSelectionDialog.on_firmwarePicker_textChanged</h4> |
|
128 <b>on_firmwarePicker_textChanged</b>(<i>firmware</i>) |
|
129 <p> |
|
130 Private slot handling a change of the firmware path. |
|
131 </p><dl> |
|
132 <dt><i>firmware</i> (str)</dt> |
|
133 <dd> |
|
134 path to the firmware |
|
135 </dd> |
|
136 </dl> |
|
137 <div align="right"><a href="#top">Up</a></div> |
|
138 <hr /> |
|
139 </body></html> |