|
1 <!DOCTYPE html> |
|
2 <html><head> |
|
3 <title>eric6.MicroPython.CircuitPythonFirmwareSelectionDialog</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.CircuitPythonFirmwareSelectionDialog</h1> |
|
23 <p> |
|
24 Module implementing a dialog to enter the firmware flashing data. |
|
25 </p> |
|
26 <h3>Global Attributes</h3> |
|
27 <table> |
|
28 <tr><td>None</td></tr> |
|
29 </table> |
|
30 <h3>Classes</h3> |
|
31 <table> |
|
32 <tr> |
|
33 <td><a href="#CircuitPythonFirmwareSelectionDialog">CircuitPythonFirmwareSelectionDialog</a></td> |
|
34 <td>Class implementing a dialog to enter the firmware flashing data.</td> |
|
35 </tr> |
|
36 </table> |
|
37 <h3>Functions</h3> |
|
38 <table> |
|
39 <tr><td>None</td></tr> |
|
40 </table> |
|
41 <hr /><hr /> |
|
42 <a NAME="CircuitPythonFirmwareSelectionDialog" ID="CircuitPythonFirmwareSelectionDialog"></a> |
|
43 <h2>CircuitPythonFirmwareSelectionDialog</h2> |
|
44 <p> |
|
45 Class implementing a dialog to enter the firmware flashing data. |
|
46 </p> |
|
47 <h3>Derived from</h3> |
|
48 QDialog, Ui_CircuitPythonFirmwareSelectionDialog |
|
49 <h3>Class Attributes</h3> |
|
50 <table> |
|
51 <tr><td>None</td></tr> |
|
52 </table> |
|
53 <h3>Class Methods</h3> |
|
54 <table> |
|
55 <tr><td>None</td></tr> |
|
56 </table> |
|
57 <h3>Methods</h3> |
|
58 <table> |
|
59 <tr> |
|
60 <td><a href="#CircuitPythonFirmwareSelectionDialog.__init__">CircuitPythonFirmwareSelectionDialog</a></td> |
|
61 <td>Constructor</td> |
|
62 </tr><tr> |
|
63 <td><a href="#CircuitPythonFirmwareSelectionDialog.__updateOkButton">__updateOkButton</a></td> |
|
64 <td>Private method to update the state of the OK button and the retest button.</td> |
|
65 </tr><tr> |
|
66 <td><a href="#CircuitPythonFirmwareSelectionDialog.getData">getData</a></td> |
|
67 <td>Public method to obtain the entered data.</td> |
|
68 </tr><tr> |
|
69 <td><a href="#CircuitPythonFirmwareSelectionDialog.on_boardComboBox_currentIndexChanged">on_boardComboBox_currentIndexChanged</a></td> |
|
70 <td>Private slot to handle the selection of a board type.</td> |
|
71 </tr><tr> |
|
72 <td><a href="#CircuitPythonFirmwareSelectionDialog.on_bootPicker_textChanged">on_bootPicker_textChanged</a></td> |
|
73 <td>Private slot handling a change of the device path.</td> |
|
74 </tr><tr> |
|
75 <td><a href="#CircuitPythonFirmwareSelectionDialog.on_firmwarePicker_textChanged">on_firmwarePicker_textChanged</a></td> |
|
76 <td>Private slot handling a change of the firmware path.</td> |
|
77 </tr><tr> |
|
78 <td><a href="#CircuitPythonFirmwareSelectionDialog.on_retestButton_clicked">on_retestButton_clicked</a></td> |
|
79 <td>Private slot to research for the selected volume.</td> |
|
80 </tr> |
|
81 </table> |
|
82 <h3>Static Methods</h3> |
|
83 <table> |
|
84 <tr><td>None</td></tr> |
|
85 </table> |
|
86 <a NAME="CircuitPythonFirmwareSelectionDialog.__init__" ID="CircuitPythonFirmwareSelectionDialog.__init__"></a> |
|
87 <h4>CircuitPythonFirmwareSelectionDialog (Constructor)</h4> |
|
88 <b>CircuitPythonFirmwareSelectionDialog</b>(<i>parent=None</i>) |
|
89 <p> |
|
90 Constructor |
|
91 </p><dl> |
|
92 <dt><i>parent</i> (QWidget)</dt> |
|
93 <dd> |
|
94 reference to the parent widget |
|
95 </dd> |
|
96 </dl><a NAME="CircuitPythonFirmwareSelectionDialog.__updateOkButton" ID="CircuitPythonFirmwareSelectionDialog.__updateOkButton"></a> |
|
97 <h4>CircuitPythonFirmwareSelectionDialog.__updateOkButton</h4> |
|
98 <b>__updateOkButton</b>(<i></i>) |
|
99 <p> |
|
100 Private method to update the state of the OK button and the retest |
|
101 button. |
|
102 </p><a NAME="CircuitPythonFirmwareSelectionDialog.getData" ID="CircuitPythonFirmwareSelectionDialog.getData"></a> |
|
103 <h4>CircuitPythonFirmwareSelectionDialog.getData</h4> |
|
104 <b>getData</b>(<i></i>) |
|
105 <p> |
|
106 Public method to obtain the entered data. |
|
107 </p><dl> |
|
108 <dt>Returns:</dt> |
|
109 <dd> |
|
110 tuple containing the path to the CircuitPython firmware file |
|
111 and the path to the device |
|
112 </dd> |
|
113 </dl><dl> |
|
114 <dt>Return Type:</dt> |
|
115 <dd> |
|
116 tuple of (str, str) |
|
117 </dd> |
|
118 </dl><a NAME="CircuitPythonFirmwareSelectionDialog.on_boardComboBox_currentIndexChanged" ID="CircuitPythonFirmwareSelectionDialog.on_boardComboBox_currentIndexChanged"></a> |
|
119 <h4>CircuitPythonFirmwareSelectionDialog.on_boardComboBox_currentIndexChanged</h4> |
|
120 <b>on_boardComboBox_currentIndexChanged</b>(<i>index</i>) |
|
121 <p> |
|
122 Private slot to handle the selection of a board type. |
|
123 </p><dl> |
|
124 <dt><i>index</i> (int)</dt> |
|
125 <dd> |
|
126 index of the selected board type |
|
127 </dd> |
|
128 </dl><a NAME="CircuitPythonFirmwareSelectionDialog.on_bootPicker_textChanged" ID="CircuitPythonFirmwareSelectionDialog.on_bootPicker_textChanged"></a> |
|
129 <h4>CircuitPythonFirmwareSelectionDialog.on_bootPicker_textChanged</h4> |
|
130 <b>on_bootPicker_textChanged</b>(<i>devicePath</i>) |
|
131 <p> |
|
132 Private slot handling a change of the device path. |
|
133 </p><dl> |
|
134 <dt><i>devicePath</i> (str)</dt> |
|
135 <dd> |
|
136 path to the device |
|
137 </dd> |
|
138 </dl><a NAME="CircuitPythonFirmwareSelectionDialog.on_firmwarePicker_textChanged" ID="CircuitPythonFirmwareSelectionDialog.on_firmwarePicker_textChanged"></a> |
|
139 <h4>CircuitPythonFirmwareSelectionDialog.on_firmwarePicker_textChanged</h4> |
|
140 <b>on_firmwarePicker_textChanged</b>(<i>firmware</i>) |
|
141 <p> |
|
142 Private slot handling a change of the firmware path. |
|
143 </p><dl> |
|
144 <dt><i>firmware</i> (str)</dt> |
|
145 <dd> |
|
146 path to the firmware |
|
147 </dd> |
|
148 </dl><a NAME="CircuitPythonFirmwareSelectionDialog.on_retestButton_clicked" ID="CircuitPythonFirmwareSelectionDialog.on_retestButton_clicked"></a> |
|
149 <h4>CircuitPythonFirmwareSelectionDialog.on_retestButton_clicked</h4> |
|
150 <b>on_retestButton_clicked</b>(<i></i>) |
|
151 <p> |
|
152 Private slot to research for the selected volume. |
|
153 </p> |
|
154 <div align="right"><a href="#top">Up</a></div> |
|
155 <hr /> |
|
156 </body></html> |