diff -r 89f11ae6bec3 -r c4d9c28ebcd8 eric6/MicroPython/MicrobitDevices.py --- a/eric6/MicroPython/MicrobitDevices.py Tue Jul 30 19:26:56 2019 +0200 +++ b/eric6/MicroPython/MicrobitDevices.py Tue Jul 30 19:29:15 2019 +0200 @@ -29,10 +29,6 @@ @type QObject """ super(MicrobitDevice, self).__init__(microPythonWidget, parent) - - self.__replActive = False - self.__fileManagerActive = False - self.__plotterActive = False def setButtons(self): """ @@ -60,23 +56,7 @@ and a reason why it cannot. @rtype tuple of (bool, str) """ - if self.__fileManagerActive: - return False, self.tr("The REPL and the file manager use the same" - " USB serial connection. Only one can be" - " active at any time. Toggle the file" - " manager off and try again.") - else: - return True, "" - - def setRepl(self, on): - """ - Public method to set the REPL status and dependent status. - - @param on flag indicating the active status - @type bool - """ - self.__replActive = on - self.microPython.setActionButtons(files=not on) + return True, "" def canStartPlotter(self): """ @@ -86,23 +66,7 @@ Plotter and a reason why it cannot. @rtype tuple of (bool, str) """ - if self.__fileManagerActive: - return False, self.tr("The Plotter and the file manager use the" - " same USB serial connection. Only one can" - " be active at any time. Toggle the file" - " manager off and try again.") - else: - return True, "" - - def setPlotter(self, on): - """ - Public method to set the Plotter status and dependent status. - - @param on flag indicating the active status - @type bool - """ - self.__plotterActive = on - self.microPython.setActionButtons(files=not on) + return True, "" def canStartFileManager(self): """ @@ -112,24 +76,7 @@ File Manager and a reason why it cannot. @rtype tuple of (bool, str) """ - if self.__replActive or self.__plotterActive: - return False, self.tr("The file manager and the REPL/plotter use" - " the same USB serial connection. Only one" - " can be active at any time. Disconnect the" - " REPL/plotter and try again.") - else: - return True, "" - - def setFileManager(self, on): - """ - Public method to set the File Manager status and dependent status. - - @param on flag indicating the active status - @type bool - """ - self.__fileManagerActive = on - self.microPython.setActionButtons( - run=not on, repl=not on, chart=HAS_QTCHART and not on) + return True, "" @pyqtSlot() def handleDataFlood(self):