Beispiel #1
0
 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)
Beispiel #2
0
 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)