def pause(self): """ Pause loading """ self.__loading_state = LoadingState.ABORTED if self.__scroll_timeout_id is not None: GLib.source_remove(self.__scroll_timeout_id) self.__scroll_timeout_id = None View.stop(self)
def stop(self): """ Stop loading and clear queue """ self.__loading_state = LoadingState.FINISHED if self.__scroll_timeout_id is not None: GLib.source_remove(self.__scroll_timeout_id) self.__scroll_timeout_id = None self.__lazy_queue = [] self.__priority_queue = [] View.stop(self)