src/eric7/MicroPython/MicroPythonWidget.py

branch
eric7
changeset 11184
33a600dd86f4
parent 11090
f5f5f5803935
child 11186
c2d18aefef6b
equal deleted inserted replaced
11183:553b50b72f5b 11184:33a600dd86f4
976 Public method to perform some shutdown actions. 976 Public method to perform some shutdown actions.
977 """ 977 """
978 if self.__linkConnected: 978 if self.__linkConnected:
979 with EricOverrideCursor(): 979 with EricOverrideCursor():
980 self.__disconnectFromDevice() 980 self.__disconnectFromDevice()
981
982 def insertData(self, data):
983 """
984 Public method to insert some data as if it was sent directly from the device.
985
986 @param data data to be inserted into the REPL pane
987 @type str or bytes
988 """
989 if isinstance(data, str):
990 data = data.encode("utf-8")
991 self.replWidget.replEdit().processData(data)
981 992
982 ################################################################## 993 ##################################################################
983 ## Super Menu related methods below 994 ## Super Menu related methods below
984 ################################################################## 995 ##################################################################
985 996

eric ide

mercurial