--- a/eric6/MicroPython/EspDevices.py Thu Jul 11 19:48:14 2019 +0200 +++ b/eric6/MicroPython/EspDevices.py Tue Jul 16 20:12:53 2019 +0200 @@ -10,6 +10,8 @@ from __future__ import unicode_literals +from PyQt5.QtCore import pyqtSlot + from .MicroPythonDevices import MicroPythonDevice from .MicroPythonReplWidget import HAS_QTCHART @@ -75,7 +77,8 @@ @type bool """ self.__replActive = on - self.microPython.setActionButtons(files=not on) + self.microPython.setActionButtons( + files=not (on or self.__plotterActive)) def canStartPlotter(self): """ @@ -101,7 +104,8 @@ @type bool """ self.__plotterActive = on - self.microPython.setActionButtons(files=not on) + self.microPython.setActionButtons( + files=not (on or self.__replActive)) def canRunScript(self): """ @@ -143,3 +147,10 @@ @type bool """ pass + + @pyqtSlot() + def handleDataFlood(self): + """ + Public slot handling a data floof from the device. + """ + self.microPython.setActionButtons(files=True)