eric7/Documentation/Source/eric7.MicroPython.EspBackupRestoreFirmwareDialog.html

branch
eric7
changeset 8372
e0227a7c850e
child 8596
d64760b2da50
equal deleted inserted replaced
8371:d6062691d424 8372:e0227a7c850e
1 <!DOCTYPE html>
2 <html><head>
3 <title>eric7.MicroPython.EspBackupRestoreFirmwareDialog</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>
22 <a NAME="top" ID="top"></a>
23 <h1>eric7.MicroPython.EspBackupRestoreFirmwareDialog</h1>
24
25 <p>
26 Module implementing a dialog to select the ESP chip type and the backup and
27 restore parameters.
28 </p>
29 <h3>Global Attributes</h3>
30
31 <table>
32 <tr><td>None</td></tr>
33 </table>
34 <h3>Classes</h3>
35
36 <table>
37
38 <tr>
39 <td><a href="#EspBackupRestoreFirmwareDialog">EspBackupRestoreFirmwareDialog</a></td>
40 <td>Class implementing a dialog to select the ESP chip type and the backup and restore parameters.</td>
41 </tr>
42 </table>
43 <h3>Functions</h3>
44
45 <table>
46 <tr><td>None</td></tr>
47 </table>
48 <hr />
49 <hr />
50 <a NAME="EspBackupRestoreFirmwareDialog" ID="EspBackupRestoreFirmwareDialog"></a>
51 <h2>EspBackupRestoreFirmwareDialog</h2>
52
53 <p>
54 Class implementing a dialog to select the ESP chip type and the backup and
55 restore parameters.
56 </p>
57 <h3>Derived from</h3>
58 QDialog, Ui_EspBackupRestoreFirmwareDialog
59 <h3>Class Attributes</h3>
60
61 <table>
62 <tr><td>FlashModes</td></tr><tr><td>FlashSizes</td></tr>
63 </table>
64 <h3>Class Methods</h3>
65
66 <table>
67 <tr><td>None</td></tr>
68 </table>
69 <h3>Methods</h3>
70
71 <table>
72
73 <tr>
74 <td><a href="#EspBackupRestoreFirmwareDialog.__init__">EspBackupRestoreFirmwareDialog</a></td>
75 <td>Constructor</td>
76 </tr>
77 <tr>
78 <td><a href="#EspBackupRestoreFirmwareDialog.__updateOkButton">__updateOkButton</a></td>
79 <td>Private method to update the state of the OK button.</td>
80 </tr>
81 <tr>
82 <td><a href="#EspBackupRestoreFirmwareDialog.getData">getData</a></td>
83 <td>Public method to get the entered data.</td>
84 </tr>
85 <tr>
86 <td><a href="#EspBackupRestoreFirmwareDialog.on_espComboBox_currentTextChanged">on_espComboBox_currentTextChanged</a></td>
87 <td>Private slot to handle the selection of a chip type.</td>
88 </tr>
89 <tr>
90 <td><a href="#EspBackupRestoreFirmwareDialog.on_firmwarePicker_textChanged">on_firmwarePicker_textChanged</a></td>
91 <td>Private slot handling a change of the firmware path.</td>
92 </tr>
93 </table>
94 <h3>Static Methods</h3>
95
96 <table>
97 <tr><td>None</td></tr>
98 </table>
99
100 <a NAME="EspBackupRestoreFirmwareDialog.__init__" ID="EspBackupRestoreFirmwareDialog.__init__"></a>
101 <h4>EspBackupRestoreFirmwareDialog (Constructor)</h4>
102 <b>EspBackupRestoreFirmwareDialog</b>(<i>backupMode=True, parent=None</i>)
103
104 <p>
105 Constructor
106 </p>
107 <dl>
108
109 <dt><i>backupMode</i> (bool)</dt>
110 <dd>
111 flag indicating parameters for a firmware backup are
112 requested
113 </dd>
114 <dt><i>parent</i> (QWidget)</dt>
115 <dd>
116 reference to the parent widget
117 </dd>
118 </dl>
119 <a NAME="EspBackupRestoreFirmwareDialog.__updateOkButton" ID="EspBackupRestoreFirmwareDialog.__updateOkButton"></a>
120 <h4>EspBackupRestoreFirmwareDialog.__updateOkButton</h4>
121 <b>__updateOkButton</b>(<i></i>)
122
123 <p>
124 Private method to update the state of the OK button.
125 </p>
126 <a NAME="EspBackupRestoreFirmwareDialog.getData" ID="EspBackupRestoreFirmwareDialog.getData"></a>
127 <h4>EspBackupRestoreFirmwareDialog.getData</h4>
128 <b>getData</b>(<i></i>)
129
130 <p>
131 Public method to get the entered data.
132 </p>
133 <dl>
134 <dt>Return:</dt>
135 <dd>
136 tuple containing the selected chip type, the firmware size,
137 the flash mode and the path of the firmware file
138 </dd>
139 </dl>
140 <dl>
141 <dt>Return Type:</dt>
142 <dd>
143 tuple of (str, str, str, str)
144 </dd>
145 </dl>
146 <a NAME="EspBackupRestoreFirmwareDialog.on_espComboBox_currentTextChanged" ID="EspBackupRestoreFirmwareDialog.on_espComboBox_currentTextChanged"></a>
147 <h4>EspBackupRestoreFirmwareDialog.on_espComboBox_currentTextChanged</h4>
148 <b>on_espComboBox_currentTextChanged</b>(<i>chip</i>)
149
150 <p>
151 Private slot to handle the selection of a chip type.
152 </p>
153 <dl>
154
155 <dt><i>chip</i> (str)</dt>
156 <dd>
157 selected chip type
158 </dd>
159 </dl>
160 <a NAME="EspBackupRestoreFirmwareDialog.on_firmwarePicker_textChanged" ID="EspBackupRestoreFirmwareDialog.on_firmwarePicker_textChanged"></a>
161 <h4>EspBackupRestoreFirmwareDialog.on_firmwarePicker_textChanged</h4>
162 <b>on_firmwarePicker_textChanged</b>(<i>firmware</i>)
163
164 <p>
165 Private slot handling a change of the firmware path.
166 </p>
167 <dl>
168
169 <dt><i>firmware</i> (str)</dt>
170 <dd>
171 path to the firmware
172 </dd>
173 </dl>
174 <div align="right"><a href="#top">Up</a></div>
175 <hr />
176 </body></html>

eric ide

mercurial