eric6/MicroPython/MicrobitDevices.py

branch
micropython
changeset 7114
f416440c8be1
parent 7100
c4d9c28ebcd8
child 7123
94948e2aa0a5
equal deleted inserted replaced
7113:04ac3f9a87e6 7114:f416440c8be1
6 """ 6 """
7 Module implementing the device interface class for BBC micro:bit boards. 7 Module implementing the device interface class for BBC micro:bit boards.
8 """ 8 """
9 9
10 from __future__ import unicode_literals 10 from __future__ import unicode_literals
11
12 from PyQt5.QtCore import pyqtSlot
13 11
14 from .MicroPythonDevices import MicroPythonDevice 12 from .MicroPythonDevices import MicroPythonDevice
15 from .MicroPythonReplWidget import HAS_QTCHART 13 from .MicroPythonReplWidget import HAS_QTCHART
16 14
17 15
75 @return tuple containing a flag indicating it is safe to start a 73 @return tuple containing a flag indicating it is safe to start a
76 File Manager and a reason why it cannot. 74 File Manager and a reason why it cannot.
77 @rtype tuple of (bool, str) 75 @rtype tuple of (bool, str)
78 """ 76 """
79 return True, "" 77 return True, ""
80
81 @pyqtSlot()
82 def handleDataFlood(self):
83 """
84 Public slot handling a data floof from the device.
85 """
86 self.microPython.setActionButtons(files=True)

eric ide

mercurial