10014:951a8d558e23 | 10015:9352f33732ae |
---|---|
12 Module implementing the MicroPython REPL widget. | 12 Module implementing the MicroPython REPL widget. |
13 </p> | 13 </p> |
14 <h3>Global Attributes</h3> | 14 <h3>Global Attributes</h3> |
15 | 15 |
16 <table> | 16 <table> |
17 <tr><td>AnsiColorSchemes</td></tr> | 17 <tr><td>None</td></tr> |
18 </table> | 18 </table> |
19 <h3>Classes</h3> | 19 <h3>Classes</h3> |
20 | 20 |
21 <table> | 21 <table> |
22 | 22 |
50 <h3>Derived from</h3> | 50 <h3>Derived from</h3> |
51 QWidget, Ui_MicroPythonWidget | 51 QWidget, Ui_MicroPythonWidget |
52 <h3>Class Attributes</h3> | 52 <h3>Class Attributes</h3> |
53 | 53 |
54 <table> | 54 <table> |
55 <tr><td>DeviceBoardRole</td></tr><tr><td>DeviceInterfaceTypeRole</td></tr><tr><td>DevicePidRole</td></tr><tr><td>DevicePortRole</td></tr><tr><td>DeviceSerNoRole</td></tr><tr><td>DeviceTypeRole</td></tr><tr><td>DeviceVidRole</td></tr><tr><td>ManualMarker</td></tr><tr><td>ZoomMax</td></tr><tr><td>ZoomMin</td></tr> | 55 <tr><td>DeviceBoardRole</td></tr><tr><td>DeviceInterfaceTypeRole</td></tr><tr><td>DevicePidRole</td></tr><tr><td>DevicePortRole</td></tr><tr><td>DeviceSerNoRole</td></tr><tr><td>DeviceTypeRole</td></tr><tr><td>DeviceVidRole</td></tr><tr><td>DeviceWebreplUrlRole</td></tr><tr><td>ManualMarker</td></tr> |
56 </table> | 56 </table> |
57 <h3>Class Methods</h3> | 57 <h3>Class Methods</h3> |
58 | 58 |
59 <table> | 59 <table> |
60 <tr><td>None</td></tr> | 60 <tr><td>None</td></tr> |
74 <tr> | 74 <tr> |
75 <td><a href="#MicroPythonWidget.__addUnknownDevices">__addUnknownDevices</a></td> | 75 <td><a href="#MicroPythonWidget.__addUnknownDevices">__addUnknownDevices</a></td> |
76 <td>Private method to add devices to the list of manually added boards.</td> | 76 <td>Private method to add devices to the list of manually added boards.</td> |
77 </tr> | 77 </tr> |
78 <tr> | 78 <tr> |
79 <td><a href="#MicroPythonWidget.__clear">__clear</a></td> | |
80 <td>Private slot to clear the REPL pane.</td> | |
81 </tr> | |
82 <tr> | |
83 <td><a href="#MicroPythonWidget.__compileEditor2Mpy">__compileEditor2Mpy</a></td> | 79 <td><a href="#MicroPythonWidget.__compileEditor2Mpy">__compileEditor2Mpy</a></td> |
84 <td>Private slot to cross compile the current editor to a .mpy file.</td> | 80 <td>Private slot to cross compile the current editor to a .mpy file.</td> |
85 </tr> | 81 </tr> |
86 <tr> | 82 <tr> |
87 <td><a href="#MicroPythonWidget.__compileFile2Mpy">__compileFile2Mpy</a></td> | 83 <td><a href="#MicroPythonWidget.__compileFile2Mpy">__compileFile2Mpy</a></td> |
90 <tr> | 86 <tr> |
91 <td><a href="#MicroPythonWidget.__configure">__configure</a></td> | 87 <td><a href="#MicroPythonWidget.__configure">__configure</a></td> |
92 <td>Private slot to open the MicroPython configuration page.</td> | 88 <td>Private slot to open the MicroPython configuration page.</td> |
93 </tr> | 89 </tr> |
94 <tr> | 90 <tr> |
91 <td><a href="#MicroPythonWidget.__configureWebreplUrls">__configureWebreplUrls</a></td> | |
92 <td>Private slot to configure the list of selectable WebREPL URLs.</td> | |
93 </tr> | |
94 <tr> | |
95 <td><a href="#MicroPythonWidget.__connectToDevice">__connectToDevice</a></td> | 95 <td><a href="#MicroPythonWidget.__connectToDevice">__connectToDevice</a></td> |
96 <td>Private method to connect to the selected device.</td> | 96 <td>Private method to connect to the selected device.</td> |
97 </tr> | 97 </tr> |
98 <tr> | 98 <tr> |
99 <td><a href="#MicroPythonWidget.__convertToUF2">__convertToUF2</a></td> | 99 <td><a href="#MicroPythonWidget.__convertToUF2">__convertToUF2</a></td> |
106 <tr> | 106 <tr> |
107 <td><a href="#MicroPythonWidget.__disconnectFromDevice">__disconnectFromDevice</a></td> | 107 <td><a href="#MicroPythonWidget.__disconnectFromDevice">__disconnectFromDevice</a></td> |
108 <td>Private method to disconnect from the device.</td> | 108 <td>Private method to disconnect from the device.</td> |
109 </tr> | 109 </tr> |
110 <tr> | 110 <tr> |
111 <td><a href="#MicroPythonWidget.__doZoom">__doZoom</a></td> | |
112 <td>Private slot to zoom the REPL pane.</td> | |
113 </tr> | |
114 <tr> | |
115 <td><a href="#MicroPythonWidget.__downloadFirmware">__downloadFirmware</a></td> | 111 <td><a href="#MicroPythonWidget.__downloadFirmware">__downloadFirmware</a></td> |
116 <td>Private slot to open the firmware download page.</td> | 112 <td>Private slot to open the firmware download page.</td> |
117 </tr> | 113 </tr> |
118 <tr> | 114 <tr> |
119 <td><a href="#MicroPythonWidget.__downloadFromUrl">__downloadFromUrl</a></td> | 115 <td><a href="#MicroPythonWidget.__downloadFromUrl">__downloadFromUrl</a></td> |
146 <tr> | 142 <tr> |
147 <td><a href="#MicroPythonWidget.__mpyCrossAvailable">__mpyCrossAvailable</a></td> | 143 <td><a href="#MicroPythonWidget.__mpyCrossAvailable">__mpyCrossAvailable</a></td> |
148 <td>Private method to check the availability of mpy-cross.</td> | 144 <td>Private method to check the availability of mpy-cross.</td> |
149 </tr> | 145 </tr> |
150 <tr> | 146 <tr> |
151 <td><a href="#MicroPythonWidget.__paste">__paste</a></td> | |
152 <td>Private slot to perform a paste operation.</td> | |
153 </tr> | |
154 <tr> | |
155 <td><a href="#MicroPythonWidget.__populateDeviceTypeComboBox">__populateDeviceTypeComboBox</a></td> | 147 <td><a href="#MicroPythonWidget.__populateDeviceTypeComboBox">__populateDeviceTypeComboBox</a></td> |
156 <td>Private method to populate the device type selector.</td> | 148 <td>Private method to populate the device type selector.</td> |
157 </tr> | 149 </tr> |
158 <tr> | 150 <tr> |
159 <td><a href="#MicroPythonWidget.__processData">__processData</a></td> | |
160 <td>Private slot to process bytes received from the device.</td> | |
161 </tr> | |
162 <tr> | |
163 <td><a href="#MicroPythonWidget.__replEditMouseReleaseEvent">__replEditMouseReleaseEvent</a></td> | |
164 <td>Private method handling mouse release events for the replEdit widget.</td> | |
165 </tr> | |
166 <tr> | |
167 <td><a href="#MicroPythonWidget.__setCharFormat">__setCharFormat</a></td> | |
168 <td>Private method setting the current text format of the REPL pane based on the passed ANSI codes.</td> | |
169 </tr> | |
170 <tr> | |
171 <td><a href="#MicroPythonWidget.__setConnected">__setConnected</a></td> | 151 <td><a href="#MicroPythonWidget.__setConnected">__setConnected</a></td> |
172 <td>Private method to set the connection status LED.</td> | 152 <td>Private method to set the connection status LED.</td> |
173 </tr> | 153 </tr> |
174 <tr> | 154 <tr> |
175 <td><a href="#MicroPythonWidget.__showBoardInformation">__showBoardInformation</a></td> | 155 <td><a href="#MicroPythonWidget.__showBoardInformation">__showBoardInformation</a></td> |
178 <tr> | 158 <tr> |
179 <td><a href="#MicroPythonWidget.__showBuiltinModules">__showBuiltinModules</a></td> | 159 <td><a href="#MicroPythonWidget.__showBuiltinModules">__showBuiltinModules</a></td> |
180 <td>Private slot to show a list of builtin modules.</td> | 160 <td>Private slot to show a list of builtin modules.</td> |
181 </tr> | 161 </tr> |
182 <tr> | 162 <tr> |
183 <td><a href="#MicroPythonWidget.__showContextMenu">__showContextMenu</a></td> | |
184 <td>Private slot to show the REPL context menu.</td> | |
185 </tr> | |
186 <tr> | |
187 <td><a href="#MicroPythonWidget.__showDeviceTime">__showDeviceTime</a></td> | 163 <td><a href="#MicroPythonWidget.__showDeviceTime">__showDeviceTime</a></td> |
188 <td>Private slot to show the date and time of the connected device.</td> | 164 <td>Private slot to show the date and time of the connected device.</td> |
189 </tr> | 165 </tr> |
190 <tr> | 166 <tr> |
191 <td><a href="#MicroPythonWidget.__showDeviceVersion">__showDeviceVersion</a></td> | 167 <td><a href="#MicroPythonWidget.__showDeviceVersion">__showDeviceVersion</a></td> |
222 <tr> | 198 <tr> |
223 <td><a href="#MicroPythonWidget.deviceSupportsLocalFileAccess">deviceSupportsLocalFileAccess</a></td> | 199 <td><a href="#MicroPythonWidget.deviceSupportsLocalFileAccess">deviceSupportsLocalFileAccess</a></td> |
224 <td>Public method to indicate that the device access the device file system via a local directory.</td> | 200 <td>Public method to indicate that the device access the device file system via a local directory.</td> |
225 </tr> | 201 </tr> |
226 <tr> | 202 <tr> |
227 <td><a href="#MicroPythonWidget.eventFilter">eventFilter</a></td> | |
228 <td>Public method to process events for the REPL pane.</td> | |
229 </tr> | |
230 <tr> | |
231 <td><a href="#MicroPythonWidget.getCurrentPort">getCurrentPort</a></td> | 203 <td><a href="#MicroPythonWidget.getCurrentPort">getCurrentPort</a></td> |
232 <td>Public method to determine the port path of the selected device.</td> | 204 <td>Public method to determine the port path of the selected device.</td> |
233 </tr> | 205 </tr> |
234 <tr> | 206 <tr> |
235 <td><a href="#MicroPythonWidget.getDevice">getDevice</a></td> | 207 <td><a href="#MicroPythonWidget.getDevice">getDevice</a></td> |
260 <td>Public method to check, if the connected/selected device is a BBC micro:bit or Calliope mini.</td> | 232 <td>Public method to check, if the connected/selected device is a BBC micro:bit or Calliope mini.</td> |
261 </tr> | 233 </tr> |
262 <tr> | 234 <tr> |
263 <td><a href="#MicroPythonWidget.on_chartButton_clicked">on_chartButton_clicked</a></td> | 235 <td><a href="#MicroPythonWidget.on_chartButton_clicked">on_chartButton_clicked</a></td> |
264 <td>Private slot to open a chart view to plot data received from the connected device.</td> | 236 <td>Private slot to open a chart view to plot data received from the connected device.</td> |
265 </tr> | |
266 <tr> | |
267 <td><a href="#MicroPythonWidget.on_checkButton_clicked">on_checkButton_clicked</a></td> | |
268 <td>Private slot to check for connected devices.</td> | |
269 </tr> | 237 </tr> |
270 <tr> | 238 <tr> |
271 <td><a href="#MicroPythonWidget.on_connectButton_clicked">on_connectButton_clicked</a></td> | 239 <td><a href="#MicroPythonWidget.on_connectButton_clicked">on_connectButton_clicked</a></td> |
272 <td>Private slot to connect to the selected device or disconnect from the currently connected device.</td> | 240 <td>Private slot to connect to the selected device or disconnect from the currently connected device.</td> |
273 </tr> | 241 </tr> |
339 <dt><i>devices</i> (list of tuple of (int, int, str))</dt> | 307 <dt><i>devices</i> (list of tuple of (int, int, str))</dt> |
340 <dd> | 308 <dd> |
341 list of not ignored but unknown devices | 309 list of not ignored but unknown devices |
342 </dd> | 310 </dd> |
343 </dl> | 311 </dl> |
344 <a NAME="MicroPythonWidget.__clear" ID="MicroPythonWidget.__clear"></a> | |
345 <h4>MicroPythonWidget.__clear</h4> | |
346 <b>__clear</b>(<i></i>) | |
347 | |
348 <p> | |
349 Private slot to clear the REPL pane. | |
350 </p> | |
351 <a NAME="MicroPythonWidget.__compileEditor2Mpy" ID="MicroPythonWidget.__compileEditor2Mpy"></a> | 312 <a NAME="MicroPythonWidget.__compileEditor2Mpy" ID="MicroPythonWidget.__compileEditor2Mpy"></a> |
352 <h4>MicroPythonWidget.__compileEditor2Mpy</h4> | 313 <h4>MicroPythonWidget.__compileEditor2Mpy</h4> |
353 <b>__compileEditor2Mpy</b>(<i></i>) | 314 <b>__compileEditor2Mpy</b>(<i></i>) |
354 | 315 |
355 <p> | 316 <p> |
367 <b>__configure</b>(<i></i>) | 328 <b>__configure</b>(<i></i>) |
368 | 329 |
369 <p> | 330 <p> |
370 Private slot to open the MicroPython configuration page. | 331 Private slot to open the MicroPython configuration page. |
371 </p> | 332 </p> |
333 <a NAME="MicroPythonWidget.__configureWebreplUrls" ID="MicroPythonWidget.__configureWebreplUrls"></a> | |
334 <h4>MicroPythonWidget.__configureWebreplUrls</h4> | |
335 <b>__configureWebreplUrls</b>(<i></i>) | |
336 | |
337 <p> | |
338 Private slot to configure the list of selectable WebREPL URLs. | |
339 </p> | |
372 <a NAME="MicroPythonWidget.__connectToDevice" ID="MicroPythonWidget.__connectToDevice"></a> | 340 <a NAME="MicroPythonWidget.__connectToDevice" ID="MicroPythonWidget.__connectToDevice"></a> |
373 <h4>MicroPythonWidget.__connectToDevice</h4> | 341 <h4>MicroPythonWidget.__connectToDevice</h4> |
374 <b>__connectToDevice</b>(<i>withAutostart=False</i>) | 342 <b>__connectToDevice</b>(<i>withAutostart=False</i>) |
375 | 343 |
376 <p> | 344 <p> |
421 <b>__disconnectFromDevice</b>(<i></i>) | 389 <b>__disconnectFromDevice</b>(<i></i>) |
422 | 390 |
423 <p> | 391 <p> |
424 Private method to disconnect from the device. | 392 Private method to disconnect from the device. |
425 </p> | 393 </p> |
426 <a NAME="MicroPythonWidget.__doZoom" ID="MicroPythonWidget.__doZoom"></a> | |
427 <h4>MicroPythonWidget.__doZoom</h4> | |
428 <b>__doZoom</b>(<i>value</i>) | |
429 | |
430 <p> | |
431 Private slot to zoom the REPL pane. | |
432 </p> | |
433 <dl> | |
434 | |
435 <dt><i>value</i> (int)</dt> | |
436 <dd> | |
437 zoom value | |
438 </dd> | |
439 </dl> | |
440 <a NAME="MicroPythonWidget.__downloadFirmware" ID="MicroPythonWidget.__downloadFirmware"></a> | 394 <a NAME="MicroPythonWidget.__downloadFirmware" ID="MicroPythonWidget.__downloadFirmware"></a> |
441 <h4>MicroPythonWidget.__downloadFirmware</h4> | 395 <h4>MicroPythonWidget.__downloadFirmware</h4> |
442 <b>__downloadFirmware</b>(<i></i>) | 396 <b>__downloadFirmware</b>(<i></i>) |
443 | 397 |
444 <p> | 398 <p> |
547 <dt>Return Type:</dt> | 501 <dt>Return Type:</dt> |
548 <dd> | 502 <dd> |
549 bool | 503 bool |
550 </dd> | 504 </dd> |
551 </dl> | 505 </dl> |
552 <a NAME="MicroPythonWidget.__paste" ID="MicroPythonWidget.__paste"></a> | |
553 <h4>MicroPythonWidget.__paste</h4> | |
554 <b>__paste</b>(<i>mode=QClipboard.Mode.Clipboard</i>) | |
555 | |
556 <p> | |
557 Private slot to perform a paste operation. | |
558 </p> | |
559 <dl> | |
560 | |
561 <dt><i>mode</i> (QClipboard.Mode (optional))</dt> | |
562 <dd> | |
563 paste mode (defaults to QClipboard.Mode.Clipboard) | |
564 </dd> | |
565 </dl> | |
566 <a NAME="MicroPythonWidget.__populateDeviceTypeComboBox" ID="MicroPythonWidget.__populateDeviceTypeComboBox"></a> | 506 <a NAME="MicroPythonWidget.__populateDeviceTypeComboBox" ID="MicroPythonWidget.__populateDeviceTypeComboBox"></a> |
567 <h4>MicroPythonWidget.__populateDeviceTypeComboBox</h4> | 507 <h4>MicroPythonWidget.__populateDeviceTypeComboBox</h4> |
568 <b>__populateDeviceTypeComboBox</b>(<i></i>) | 508 <b>__populateDeviceTypeComboBox</b>(<i></i>) |
569 | 509 |
570 <p> | 510 <p> |
571 Private method to populate the device type selector. | 511 Private method to populate the device type selector. |
572 </p> | 512 </p> |
573 <a NAME="MicroPythonWidget.__processData" ID="MicroPythonWidget.__processData"></a> | |
574 <h4>MicroPythonWidget.__processData</h4> | |
575 <b>__processData</b>(<i>data</i>) | |
576 | |
577 <p> | |
578 Private slot to process bytes received from the device. | |
579 </p> | |
580 <dl> | |
581 | |
582 <dt><i>data</i> (bytes)</dt> | |
583 <dd> | |
584 bytes received from the device | |
585 </dd> | |
586 </dl> | |
587 <a NAME="MicroPythonWidget.__replEditMouseReleaseEvent" ID="MicroPythonWidget.__replEditMouseReleaseEvent"></a> | |
588 <h4>MicroPythonWidget.__replEditMouseReleaseEvent</h4> | |
589 <b>__replEditMouseReleaseEvent</b>(<i>evt</i>) | |
590 | |
591 <p> | |
592 Private method handling mouse release events for the replEdit widget. | |
593 </p> | |
594 <p> | |
595 Note: this is a hack because QTextEdit does not allow filtering of | |
596 QEvent.Type.MouseButtonRelease. To make middle button paste work, we | |
597 had to intercept the protected event method (some kind of | |
598 reimplementing it). | |
599 </p> | |
600 <dl> | |
601 | |
602 <dt><i>evt</i> (QMouseEvent)</dt> | |
603 <dd> | |
604 reference to the event object | |
605 </dd> | |
606 </dl> | |
607 <a NAME="MicroPythonWidget.__setCharFormat" ID="MicroPythonWidget.__setCharFormat"></a> | |
608 <h4>MicroPythonWidget.__setCharFormat</h4> | |
609 <b>__setCharFormat</b>(<i>formatCodes, textCursor</i>) | |
610 | |
611 <p> | |
612 Private method setting the current text format of the REPL pane based | |
613 on the passed ANSI codes. | |
614 </p> | |
615 <p> | |
616 Following codes are used: | |
617 <ul> | |
618 <li>0: Reset</li> | |
619 <li>1: Bold font (weight 75)</li> | |
620 <li>2: Light font (weight 25)</li> | |
621 <li>3: Italic font</li> | |
622 <li>4: Underlined font</li> | |
623 <li>9: Strikeout font</li> | |
624 <li>21: Bold off (weight 50)</li> | |
625 <li>22: Light off (weight 50)</li> | |
626 <li>23: Italic off</li> | |
627 <li>24: Underline off</li> | |
628 <li>29: Strikeout off</li> | |
629 <li>30: foreground Black</li> | |
630 <li>31: foreground Dark Red</li> | |
631 <li>32: foreground Dark Green</li> | |
632 <li>33: foreground Dark Yellow</li> | |
633 <li>34: foreground Dark Blue</li> | |
634 <li>35: foreground Dark Magenta</li> | |
635 <li>36: foreground Dark Cyan</li> | |
636 <li>37: foreground Light Gray</li> | |
637 <li>39: reset foreground to default</li> | |
638 <li>40: background Black</li> | |
639 <li>41: background Dark Red</li> | |
640 <li>42: background Dark Green</li> | |
641 <li>43: background Dark Yellow</li> | |
642 <li>44: background Dark Blue</li> | |
643 <li>45: background Dark Magenta</li> | |
644 <li>46: background Dark Cyan</li> | |
645 <li>47: background Light Gray</li> | |
646 <li>49: reset background to default</li> | |
647 <li>53: Overlined font</li> | |
648 <li>55: Overline off</li> | |
649 <li>90: bright foreground Dark Gray</li> | |
650 <li>91: bright foreground Red</li> | |
651 <li>92: bright foreground Green</li> | |
652 <li>93: bright foreground Yellow</li> | |
653 <li>94: bright foreground Blue</li> | |
654 <li>95: bright foreground Magenta</li> | |
655 <li>96: bright foreground Cyan</li> | |
656 <li>97: bright foreground White</li> | |
657 <li>100: bright background Dark Gray</li> | |
658 <li>101: bright background Red</li> | |
659 <li>102: bright background Green</li> | |
660 <li>103: bright background Yellow</li> | |
661 <li>104: bright background Blue</li> | |
662 <li>105: bright background Magenta</li> | |
663 <li>106: bright background Cyan</li> | |
664 <li>107: bright background White</li> | |
665 </ul> | |
666 </p> | |
667 <dl> | |
668 | |
669 <dt><i>formatCodes</i> (list of str)</dt> | |
670 <dd> | |
671 list of format codes | |
672 </dd> | |
673 <dt><i>textCursor</i> (QTextCursor)</dt> | |
674 <dd> | |
675 reference to the text cursor | |
676 </dd> | |
677 </dl> | |
678 <a NAME="MicroPythonWidget.__setConnected" ID="MicroPythonWidget.__setConnected"></a> | 513 <a NAME="MicroPythonWidget.__setConnected" ID="MicroPythonWidget.__setConnected"></a> |
679 <h4>MicroPythonWidget.__setConnected</h4> | 514 <h4>MicroPythonWidget.__setConnected</h4> |
680 <b>__setConnected</b>(<i>connected</i>) | 515 <b>__setConnected</b>(<i>connected</i>) |
681 | 516 |
682 <p> | 517 <p> |
701 <b>__showBuiltinModules</b>(<i></i>) | 536 <b>__showBuiltinModules</b>(<i></i>) |
702 | 537 |
703 <p> | 538 <p> |
704 Private slot to show a list of builtin modules. | 539 Private slot to show a list of builtin modules. |
705 </p> | 540 </p> |
706 <a NAME="MicroPythonWidget.__showContextMenu" ID="MicroPythonWidget.__showContextMenu"></a> | |
707 <h4>MicroPythonWidget.__showContextMenu</h4> | |
708 <b>__showContextMenu</b>(<i>pos</i>) | |
709 | |
710 <p> | |
711 Private slot to show the REPL context menu. | |
712 </p> | |
713 <dl> | |
714 | |
715 <dt><i>pos</i> (QPoint)</dt> | |
716 <dd> | |
717 position to show the menu at | |
718 </dd> | |
719 </dl> | |
720 <a NAME="MicroPythonWidget.__showDeviceTime" ID="MicroPythonWidget.__showDeviceTime"></a> | 541 <a NAME="MicroPythonWidget.__showDeviceTime" ID="MicroPythonWidget.__showDeviceTime"></a> |
721 <h4>MicroPythonWidget.__showDeviceTime</h4> | 542 <h4>MicroPythonWidget.__showDeviceTime</h4> |
722 <b>__showDeviceTime</b>(<i></i>) | 543 <b>__showDeviceTime</b>(<i></i>) |
723 | 544 |
724 <p> | 545 <p> |
818 <dt>Return Type:</dt> | 639 <dt>Return Type:</dt> |
819 <dd> | 640 <dd> |
820 bool | 641 bool |
821 </dd> | 642 </dd> |
822 </dl> | 643 </dl> |
823 <a NAME="MicroPythonWidget.eventFilter" ID="MicroPythonWidget.eventFilter"></a> | |
824 <h4>MicroPythonWidget.eventFilter</h4> | |
825 <b>eventFilter</b>(<i>obj, evt</i>) | |
826 | |
827 <p> | |
828 Public method to process events for the REPL pane. | |
829 </p> | |
830 <dl> | |
831 | |
832 <dt><i>obj</i> (QObject)</dt> | |
833 <dd> | |
834 reference to the object the event was meant for | |
835 </dd> | |
836 <dt><i>evt</i> (QEvent)</dt> | |
837 <dd> | |
838 reference to the event object | |
839 </dd> | |
840 </dl> | |
841 <dl> | |
842 <dt>Return:</dt> | |
843 <dd> | |
844 flag to indicate that the event was handled | |
845 </dd> | |
846 </dl> | |
847 <dl> | |
848 <dt>Return Type:</dt> | |
849 <dd> | |
850 bool | |
851 </dd> | |
852 </dl> | |
853 <a NAME="MicroPythonWidget.getCurrentPort" ID="MicroPythonWidget.getCurrentPort"></a> | 644 <a NAME="MicroPythonWidget.getCurrentPort" ID="MicroPythonWidget.getCurrentPort"></a> |
854 <h4>MicroPythonWidget.getCurrentPort</h4> | 645 <h4>MicroPythonWidget.getCurrentPort</h4> |
855 <b>getCurrentPort</b>(<i></i>) | 646 <b>getCurrentPort</b>(<i></i>) |
856 | 647 |
857 <p> | 648 <p> |
1002 <dt><i>checked</i> (bool)</dt> | 793 <dt><i>checked</i> (bool)</dt> |
1003 <dd> | 794 <dd> |
1004 state of the button | 795 state of the button |
1005 </dd> | 796 </dd> |
1006 </dl> | 797 </dl> |
1007 <a NAME="MicroPythonWidget.on_checkButton_clicked" ID="MicroPythonWidget.on_checkButton_clicked"></a> | |
1008 <h4>MicroPythonWidget.on_checkButton_clicked</h4> | |
1009 <b>on_checkButton_clicked</b>(<i></i>) | |
1010 | |
1011 <p> | |
1012 Private slot to check for connected devices. | |
1013 </p> | |
1014 <a NAME="MicroPythonWidget.on_connectButton_clicked" ID="MicroPythonWidget.on_connectButton_clicked"></a> | 798 <a NAME="MicroPythonWidget.on_connectButton_clicked" ID="MicroPythonWidget.on_connectButton_clicked"></a> |
1015 <h4>MicroPythonWidget.on_connectButton_clicked</h4> | 799 <h4>MicroPythonWidget.on_connectButton_clicked</h4> |
1016 <b>on_connectButton_clicked</b>(<i></i>) | 800 <b>on_connectButton_clicked</b>(<i></i>) |
1017 | 801 |
1018 <p> | 802 <p> |