def Stop(self): if not self.__isStarted: return Component.Stop(self) pyplot.close() self.__isStarted = False
def Stop(self): if not self.__isStarted: return Component.Stop(self) self.__isStarted = False if self.__audio is None: return self.__stream.stop_stream() self.__stream.close() self.__audio.terminate()