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 |