8118:0ecebcd8875e | 8119:1653972f2de5 |
---|---|
2 | 2 |
3 # Copyright (c) 2019 - 2021 Detlev Offenbach <detlev@die-offenbachs.de> | 3 # Copyright (c) 2019 - 2021 Detlev Offenbach <detlev@die-offenbachs.de> |
4 # | 4 # |
5 | 5 |
6 """ | 6 """ |
7 Module implementing some utility functions and the MicroPythonDevice base | 7 Module implementing the device interface class for ESP32 and ESP8266 based |
8 class. | 8 boards. |
9 """ | 9 """ |
10 | 10 |
11 import sys | 11 import sys |
12 | 12 |
13 from PyQt5.QtCore import pyqtSlot, QProcess | 13 from PyQt5.QtCore import pyqtSlot, QProcess |
93 | 93 |
94 @return tuple containing a flag indicating it is safe to start a | 94 @return tuple containing a flag indicating it is safe to start a |
95 Plotter and a reason why it cannot. | 95 Plotter and a reason why it cannot. |
96 @rtype tuple of (bool, str) | 96 @rtype tuple of (bool, str) |
97 """ | 97 """ |
98 return self.canStartRepl() | 98 return True, "" |
99 | 99 |
100 def runScript(self, script): | 100 def runScript(self, script): |
101 """ | 101 """ |
102 Public method to run the given Python script. | 102 Public method to run the given Python script. |
103 | 103 |