Module Expr Str Assign NameStore TupleLoad Str Str Str ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias ImportFrom alias alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias alias alias Import alias Import alias Expr Call AttributeLoad NameLoad attr Str keyword Num keyword Num ClassDef bases NameLoad body Expr Str Assign NameStore TupleLoad Str FunctionDef arguments args NameParam NameParam defaults kwarg body Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Pass decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore NameLoad attr ListLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body TryExcept body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body Pass decorator_list FunctionDef arguments args NameParam NameParam defaults body If CompareLt NameLoad Num body Raise Call NameLoad Str Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return AttributeLoad NameLoad attr decorator_list Assign NameStore Call NameLoad NameLoad NameLoad Expr Str FunctionDef arguments args NameParam NameParam defaults body If BoolOpAnd CompareIsNot NameLoad NameLoad CompareLt NameLoad Num body Raise Call NameLoad Str Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return AttributeLoad NameLoad attr decorator_list Assign NameStore Call NameLoad NameLoad NameLoad Expr Str FunctionDef arguments args NameParam defaults body If UnaryOpNot AttributeLoad NameLoad attr body Assign NameStore Call NameLoad NameLoad Str Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr keyword NameLoad Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body If Call NameLoad NameLoad NameLoad body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr keyword NameLoad orelse Assign AttributeStore NameLoad attr NameLoad decorator_list Assign NameStore Call NameLoad NameLoad NameLoad Expr Str FunctionDef arguments args NameParam defaults body If UnaryOpNot AttributeLoad NameLoad attr body Assign NameStore Call NameLoad Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr keyword NameLoad Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body If Call NameLoad NameLoad NameLoad body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr keyword NameLoad orelse Assign AttributeStore NameLoad attr NameLoad decorator_list Assign NameStore Call NameLoad NameLoad NameLoad Expr Str FunctionDef arguments args NameParam defaults body Expr Str Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults vararg body Expr Str Pass decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body While BoolOpAnd AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str While CompareGtE Call NameLoad AttributeLoad NameLoad attr BinOpMult AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Expr Call NameLoad Num Expr Call AttributeLoad NameLoad attr Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore SubscriptLoad NameLoad Index Str TryExcept body Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr Str Num Index Num handlers ExceptHandler body Return If CompareIsNot NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad orelse If CompareIn NameLoad TupleLoad Str Str Str Str body Assign NameStore Call AttributeLoad NameLoad attr NameLoad SubscriptLoad NameLoad Index Str orelse Assign NameStore Call AttributeLoad NameLoad attr NameLoad SubscriptLoad NameLoad Index Str If NameLoad body Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr TupleLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr NameLoad keyword NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str If NameLoad body Import alias identifier FunctionDef arguments args NameParam defaults body Return Call AttributeLoad NameLoad attr decorator_list orelse Import alias identifier FunctionDef arguments args NameParam defaults body Return Call AttributeLoad NameLoad attr decorator_list Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr Str Num Index Num If CompareEq NameLoad Str body TryExcept body ImportFrom alias handlers ExceptHandler type NameLoad body Expr Call AttributeLoad NameLoad attr Str Return Import alias Assign NameStore NameStore NameStore NameLoad TryFinally body TryExcept body Assign NameStore Str If CompareEq NameLoad Str body Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr NameLoad orelse Assign NameStore Call AttributeLoad NameLoad attr NameLoad If CompareIn Str NameLoad body Assign NameStore BinOpAdd Str SubscriptLoad Call AttributeLoad NameLoad attr Str Index Num orelse Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad If UnaryOpNot NameLoad body Assign NameStore SubscriptLoad Call AttributeLoad SubscriptLoad Call AttributeLoad NameLoad attr Str Index Num attr Str Slice Num While BoolOpAnd CompareGt Call NameLoad NameLoad Num UnaryOpNot SubscriptLoad NameLoad Index Num body Assign NameStore SubscriptLoad NameLoad Slice Num If BoolOpAnd CompareGt Call NameLoad NameLoad Num CompareIn Str SubscriptLoad NameLoad Index Num body Assign NameStore BinOpAdd Str SubscriptLoad Call AttributeLoad SubscriptLoad NameLoad Index Num attr Str Index Num Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr keyword Str keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Assign NameStore NameLoad Expr Call NameLoad NameLoad NameLoad Expr Call NameLoad NameLoad Assign NameStore NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad For NameStore AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr NameLoad handlers ExceptHandler type NameLoad body Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad TryExcept body Expr Call NameLoad NameLoad handlers ExceptHandler type NameLoad body Pass Return AttributeLoad NameLoad attr finalbody If NameLoad body Expr Call AttributeLoad NameLoad attr If NameLoad body Expr Call NameLoad NameLoad If CompareNotEq NameLoad Str body Expr Call NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults vararg body Expr Str If AttributeLoad NameLoad attr body If UnaryOpNot AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Return For NameStore Call NameLoad AttributeLoad NameLoad attr body TryExcept body Assign TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr handlers ExceptHandler type NameLoad body Return Assign NameStore NameLoad If UnaryOpNot AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Str NameLoad NameLoad For TupleStore NameStore NameStore SubscriptLoad AttributeLoad NameLoad attr Slice body If CompareNotEq NameLoad NameLoad body Continue Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr TupleLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad NameLoad kwarg body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad If CompareNotIn NameLoad TupleLoad NameLoad NameLoad body Return Call NameLoad NameLoad keyword AttributeLoad NameLoad attr keyword NameLoad NameLoad Assign NameStore Call NameLoad AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr TupleLoad NameLoad NameLoad If CompareIs NameLoad NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Dict Str Str Str Str NameLoad NameLoad NameLoad NameLoad If UnaryOpNot Call AttributeLoad NameLoad attr Str NameLoad body Expr Call AttributeLoad NameLoad attr Str NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr orelse Pass Return NameLoad decorator_list decorator_list If CompareIn Str NameLoad body Assign NameStore NameLoad orelse ImportFrom alias ImportFrom alias ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body While AttributeLoad AttributeLoad NameLoad attr attr body Assign TupleStore NameStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr TryExcept body Expr Call NameLoad NameLoad NameLoad handlers ExceptHandler type NameLoad name NameStore body Print NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr For NameStore Call NameLoad NameLoad body Expr Call NameLoad NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults vararg kwarg body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr TupleLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults vararg body While AttributeLoad NameLoad attr body TryExcept body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr handlers ExceptHandler body Return Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad decorator_list decorator_list Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr AttributeLoad NameLoad attr
N/A N/A 
Asynchronous data loader
========================

This is the Asynchronous Loader. You can use it to load an image
and use it, even if data are not yet available. You must specify a default
loading image when using the loader::

    from kivy.loader import Loader
    image = Loader.image('mysprite.png')

You can also load an image from a url::

    image = Loader.image('http://mysite.com/test.png')

If you want to change the default loading image, you can do::

    Loader.loading_image = Image('another_loading.png')

Tweaking the asynchronous loader
--------------------------------

.. versionadded:: 1.6.0

You can tweak the loader to provide a better user experience or more
performance, depending of the images you are going to load. Take a look at the
parameters:

- :attr:`Loader.num_workers` - define the number of threads to start for
  loading images.
- :attr:`Loader.max_upload_per_frame` - define the maximum image uploads in
  GPU to do per frame.

 N/A __all__ N/A Loader LoaderBase ProxyImage kivy kivy_data_dir kivy.logger Logger kivy.clock Clock kivy.cache Cache kivy.core.image ImageLoader Image kivy.compat PY2 string_types collections deque time sleep os.path join os write close unlink environ N/A threading N/A mimetypes N/A N/A N/A Cache register kv.loader limit 500 timeout 60 ProxyImage N/A Image N/A N/A Image returned by the Loader.image() function.

    :Properties:
        `loaded`: bool, defaults to False
            This value may be True if the image is already cached.

    :Events:
        `on_load`
            Fired when the image is loaded or changed.
     N/A __events__ N/A on_load __init__ N/A N/A self arg N/A kwargs N/A N/A loaded N/A N/A kwargs pop loaded False N/A N/A N/A N/A super ProxyImage self __init__ arg kwargs N/A N/A self loaded loaded N/A on_load N/A N/A self N/A N/A N/A N/A N/A LoaderBase N/A object N/A N/A Common base for the Loader and specific implementations.
    By default, the Loader will be the best available loader implementation.

    The _update() function is called every 1 / 25.s or each frame if we have
    less than 25 FPS.
     __init__ N/A N/A self N/A N/A N/A N/A self _loading_image None N/A N/A self _error_image None N/A N/A self _num_workers 2 N/A N/A self _max_upload_per_frame 2 N/A N/A self _paused False N/A N/A self _resume_cond N/A N/A threading Condition N/A N/A self _q_load N/A deque N/A N/A self _q_done N/A deque N/A N/A self _client N/A N/A N/A self _running False N/A N/A self _start_wanted False N/A N/A self _trigger_update N/A N/A Clock create_trigger N/A self _update N/A __del__ N/A N/A self N/A N/A N/A N/A N/A N/A N/A Clock unschedule N/A self _update N/A N/A N/A Exception N/A N/A N/A _set_num_workers N/A N/A self num N/A N/A N/A N/A num 2 N/A N/A N/A Exception Must have at least 2 workers N/A N/A self _num_workers num N/A _get_num_workers N/A N/A self N/A N/A N/A N/A self _num_workers N/A N/A num_workers N/A property _get_num_workers _set_num_workers N/A Number of workers to use while loading (used only if the loader
    implementation supports it). This setting impacts the loader only on
    initialization. Once the loader is started, the setting has no impact::

        from kivy.loader import Loader
        Loader.num_workers = 4

    The default value is 2 for giving a smooth user experience. You could
    increase the number of workers, then all the images will be loaded faster,
    but the user will not been able to use the application while loading.
    Prior to 1.6.0, the default number was 20, and loading many full-hd images
    was completly blocking the application.

    .. versionadded:: 1.6.0
     _set_max_upload_per_frame N/A N/A self num N/A N/A N/A N/A N/A num None N/A num 1 N/A N/A N/A Exception Must have at least 1 image processing per image N/A N/A self _max_upload_per_frame num N/A _get_max_upload_per_frame N/A N/A self N/A N/A N/A N/A self _max_upload_per_frame N/A N/A max_upload_per_frame N/A property _get_max_upload_per_frame _set_max_upload_per_frame N/A The number of images to upload per frame. By default, we'll
    upload only 2 images to the GPU per frame. If you are uploading many
    small images, you can easily increase this parameter to 10 or more.
    If you are loading multiple full HD images, the upload time may have
    consequences and block the application. If you want a
    smooth experience, use the default.

    As a matter of fact, a Full-HD RGB image will take ~6MB in memory,
    so it may take time. If you have activated mipmap=True too, then the
    GPU must calculate the mipmap of these big images too, in real time.
    Then it may be best to reduce the :attr:`max_upload_per_frame` to 1
    or 2. If you want to get rid of that (or reduce it a lot), take a
    look at the DDS format.

    .. versionadded:: 1.6.0
     _get_loading_image N/A N/A self N/A N/A N/A N/A N/A self _loading_image N/A N/A loading_png_fn N/A join kivy_data_dir images image-loading.gif N/A N/A self _loading_image N/A N/A ImageLoader load filename loading_png_fn N/A N/A self _loading_image N/A _set_loading_image N/A N/A self image N/A N/A N/A N/A isinstance image string_types N/A N/A N/A self _loading_image N/A N/A ImageLoader load filename image N/A N/A N/A self _loading_image image N/A N/A loading_image N/A property _get_loading_image _set_loading_image N/A Image used for loading.
    You can change it by doing::

        Loader.loading_image = 'loading.png'

    .. versionchanged:: 1.6.0
        Not readonly anymore.
     _get_error_image N/A N/A self N/A N/A N/A N/A N/A self _error_image N/A N/A error_png_fn N/A join atlas://data/images/defaulttheme/image-missing N/A N/A self _error_image N/A N/A ImageLoader load filename error_png_fn N/A N/A self _error_image N/A _set_error_image N/A N/A self image N/A N/A N/A N/A isinstance image string_types N/A N/A N/A self _error_image N/A N/A ImageLoader load filename image N/A N/A N/A self _error_image image N/A N/A error_image N/A property _get_error_image _set_error_image N/A Image used for error.
    You can change it by doing::

        Loader.error_image = 'error.png'

    .. versionchanged:: 1.6.0
        Not readonly anymore.
     start N/A N/A self N/A N/A N/A Start the loader thread/process. N/A N/A self _running True N/A run N/A N/A self N/A largs N/A N/A Main loop for the loader. N/A N/A stop N/A N/A self N/A N/A N/A Stop the loader thread/process. N/A N/A self _running False N/A pause N/A N/A self N/A N/A N/A Pause the loader, can be useful during interactions.

        .. versionadded:: 1.6.0
         N/A N/A self _paused True N/A resume N/A N/A self N/A N/A N/A Resume the loader, after a :meth:`pause`.

        .. versionadded:: 1.6.0
         N/A N/A self _paused False N/A N/A N/A N/A self _resume_cond acquire N/A N/A N/A N/A self _resume_cond notify_all N/A N/A N/A N/A self _resume_cond release N/A _wait_for_resume N/A N/A self N/A N/A N/A N/A N/A self _running N/A self _paused N/A N/A N/A N/A N/A self _resume_cond acquire N/A N/A N/A N/A self _resume_cond wait 0.25 N/A N/A N/A N/A self _resume_cond release N/A _load N/A N/A self kwargs N/A N/A N/A (internal) Loading function, called by the thread.
        Will call _load_local() if the file is local,
        or _load_urllib() if the file is on Internet.
         N/A N/A N/A len N/A self _q_done N/A N/A self max_upload_per_frame N/A self _num_workers N/A N/A N/A sleep 0.1 N/A N/A N/A self _wait_for_resume N/A filename N/A kwargs N/A filename N/A load_callback N/A kwargs N/A load_callback N/A post_callback N/A kwargs N/A post_callback N/A N/A N/A proto N/A N/A N/A filename split : 1 N/A 0 N/A N/A N/A N/A N/A N/A load_callback None N/A N/A data N/A load_callback filename N/A N/A N/A proto N/A http https ftp smb N/A N/A data N/A N/A self _load_urllib filename N/A kwargs N/A kwargs N/A N/A data N/A N/A self _load_local filename N/A kwargs N/A kwargs N/A post_callback N/A N/A data N/A post_callback data N/A N/A N/A N/A self _q_done appendleft N/A filename data N/A N/A N/A self _trigger_update N/A _load_local N/A N/A self filename kwargs N/A N/A N/A (internal) Loading a local file N/A N/A N/A ImageLoader load filename keep_data True kwargs N/A _load_urllib N/A N/A self filename kwargs N/A N/A N/A (internal) Loading a network file. First download it, save it to a
        temporary file, and pass it to _load_local(). N/A PY2 N/A N/A urllib2 urllib_request gettype N/A N/A info N/A N/A N/A N/A N/A info gettype N/A N/A N/A urllib.request urllib_request gettype N/A N/A info N/A N/A N/A N/A N/A info get_content_type N/A N/A proto N/A N/A N/A filename split : 1 N/A 0 N/A N/A proto smb N/A N/A N/A smb.SMBHandler SMBHandler N/A N/A N/A ImportError N/A N/A N/A N/A Logger warning Loader: can not load PySMB: make sure it is installed N/A N/A tempfile N/A data fd _out_osfd None N/A N/A N/A N/A N/A _out_filename N/A N/A proto smb N/A N/A fd N/A N/A N/A N/A urllib_request build_opener SMBHandler open filename N/A N/A fd N/A N/A urllib_request urlopen filename N/A N/A #. filename N/A N/A suffix N/A . N/A N/A N/A filename split #. N/A -1 N/A N/A ctype N/A gettype N/A N/A fd info N/A suffix N/A N/A mimetypes guess_extension ctype N/A N/A suffix N/A N/A parts N/A N/A N/A N/A N/A N/A filename split ? N/A 0 split / N/A 1 N/A N/A N/A N/A len parts 1 N/A N/A parts N/A 0 N/A N/A parts N/A parts N/A 1 N/A N/A N/A N/A len parts 1 N/A . N/A parts N/A -1 N/A N/A suffix N/A . N/A N/A N/A N/A parts N/A -1 split . N/A -1 N/A N/A _out_osfd _out_filename N/A N/A tempfile mkstemp prefix kivyloader suffix suffix N/A idata N/A N/A fd read N/A N/A N/A fd close N/A fd None N/A N/A write _out_osfd idata N/A N/A close _out_osfd N/A _out_osfd None N/A data N/A N/A self _load_local _out_filename kwargs N/A imdata N/A data _data N/A N/A N/A imdata source filename N/A N/A N/A Exception N/A N/A N/A N/A Logger exception N/A Loader: Failed to load image <%s> filename N/A N/A N/A N/A close _out_osfd N/A N/A N/A OSError N/A N/A N/A N/A self error_image N/A N/A fd N/A N/A N/A N/A fd close N/A _out_osfd N/A N/A N/A close _out_osfd N/A N/A _out_filename N/A N/A N/A unlink _out_filename N/A data N/A _update N/A N/A self N/A largs N/A N/A (internal) Check if a data is loaded, and pass to the client. N/A N/A self _start_wanted N/A N/A N/A N/A self _running N/A N/A N/A N/A self start N/A N/A self _start_wanted False N/A N/A self _paused N/A N/A N/A N/A self _trigger_update N/A N/A x N/A range N/A self max_upload_per_frame N/A N/A N/A N/A N/A filename data N/A N/A N/A self _q_done pop N/A N/A N/A IndexError N/A N/A N/A image data N/A N/A N/A image nocache N/A N/A N/A N/A Cache append kv.loader filename image N/A N/A c_filename client N/A N/A self _client N/A N/A N/A N/A filename c_filename N/A N/A N/A N/A client image image N/A N/A client loaded True N/A N/A N/A client dispatch on_load N/A N/A N/A N/A self _client remove N/A c_filename client N/A N/A N/A self _trigger_update N/A image N/A N/A self filename load_callback post_callback N/A None None kwargs N/A N/A Load a image using the Loader. A ProxyImage is returned with a
        loading image. You can use it as follows::

            from kivy.app import App
            from kivy.uix.image import Image
            from kivy.loader import Loader

            class TestApp(App):
                def _image_loaded(self, proxyImage):
                    if proxyImage.image.texture:
                        self.image.texture = proxyImage.image.texture

                def build(self):
                    proxyImage = Loader.image("myPic.jpg")
                    proxyImage.bind(on_load=self._image_loaded)
                    self.image = Image()
                    return self.image

            TestApp().run()

        In order to cancel all background loading, call *Loader.stop()*.
         N/A data N/A N/A Cache get kv.loader filename N/A N/A data N/A None False N/A N/A N/A ProxyImage data loading_image N/A self loading_image loaded True kwargs N/A client N/A ProxyImage N/A self loading_image loading_image N/A self loading_image kwargs N/A N/A N/A N/A self _client append N/A filename client N/A N/A data None N/A N/A N/A N/A N/A self _q_load appendleft N/A filename load_callback post_callback kwargs filename load_callback post_callback kwargs N/A N/A N/A N/A kwargs get nocache False N/A N/A N/A N/A Cache append kv.loader filename False N/A N/A self _start_wanted True N/A N/A N/A self _trigger_update N/A N/A N/A client N/A N/A N/A N/A KIVY_DOC environ N/A N/A Loader None N/A kivy.compat queue threading Thread _Worker N/A Thread N/A N/A Thread executing tasks from a given tasks queue
         __init__ N/A N/A self pool tasks N/A N/A N/A N/A N/A Thread __init__ self N/A N/A self tasks tasks N/A N/A self daemon True N/A N/A self pool pool N/A N/A N/A self start N/A run N/A N/A self N/A N/A N/A N/A N/A self pool running N/A N/A N/A func args kargs N/A N/A N/A self tasks get N/A N/A N/A N/A func args kargs N/A N/A N/A Exception N/A e N/A N/A e N/A N/A N/A N/A self tasks task_done N/A N/A _ThreadPool N/A object N/A N/A Pool of threads consuming tasks from a queue
         __init__ N/A N/A self num_threads N/A N/A N/A N/A N/A N/A super _ThreadPool self __init__ N/A N/A self running True N/A N/A self tasks N/A N/A queue Queue N/A _ N/A range num_threads N/A N/A N/A _Worker self N/A self tasks N/A add_task N/A N/A self func N/A args kargs N/A N/A Add a task to the queue
             N/A N/A N/A N/A self tasks put N/A func args kargs N/A stop N/A N/A self N/A N/A N/A N/A self running False N/A N/A N/A N/A self tasks join N/A N/A LoaderThreadPool N/A LoaderBase N/A __init__ N/A N/A self N/A N/A N/A N/A N/A N/A super LoaderThreadPool self __init__ N/A N/A self pool None N/A start N/A N/A self N/A N/A N/A N/A N/A N/A super LoaderThreadPool self start N/A N/A self pool N/A _ThreadPool N/A self _num_workers N/A N/A N/A Clock schedule_interval N/A self run 0 N/A stop N/A N/A self N/A N/A N/A N/A N/A N/A super LoaderThreadPool self stop N/A N/A N/A Clock unschedule N/A self run N/A N/A N/A N/A self pool stop N/A run N/A N/A self N/A largs N/A N/A N/A self _running N/A N/A N/A N/A parameters N/A N/A N/A self _q_load pop N/A N/A N/A N/A N/A N/A N/A N/A self pool add_task N/A self _load parameters N/A N/A N/A Loader N/A LoaderThreadPool N/A N/A N/A Logger info N/A N/A Loader: using a thread pool of {} workers format N/A Loader num_workers