a
    {bX
                     @   s   d Z G dd dZdS )a  
Native filechooser dialog facade.
=================================

open_file, save_file and choose_dir accept a number of arguments
listed below. They return either a list of paths (normally
absolute), or None if no file was selected or the operation was
canceled and no result is available.

Arguments:
    * **path** *(string or None)*: a path that will be selected
        by default, or None
    * **multiple** *(bool)*: True if you want the dialog to
        allow multiple file selection. (Note: Windows doesn't
        support multiple directory selection)
    * **filters** *(iterable)*: either a list of wildcard patterns
        or of sequences that contain the name of the filter and any
        number of wildcards that will be grouped under that name
        (e.g. [["Music", "*mp3", "*ogg", "*aac"], "*jpg", "*py"])
    * **preview** *(bool)*: True if you want the file chooser to
        show a preview of the selected file, if supported by the
        back-end.
    * **title** *(string or None)*: The title of the file chooser
        window, or None for the default title.
    * **icon** *(string or None)*: Path to the icon of the file
        chooser window (where supported), or None for the back-end's
        default.
    * **show_hidden** *(bool)*: Force showing hidden files (currently
        supported only on Windows)
    * **on_selection** *(func)*: Callback for fetching the selection.

Important: these methods will return only after user interaction.
Use threads or you will stop the mainloop if your app has one.

.. versionchanged:: 1.4.0
    Added Android implementation for open_file()
    Added ``on_selection`` kwarg for callback function
c                   @   s0   e Zd ZdZdd Zdd Zdd Zdd	 Zd
S )FileChooserz
    File Chooser facade.
    c                 O   s   | j |ddi|S )z7
        Open the file chooser in "open" mode.
        modeopen_file_selection_dialogselfargskwargs r
   i/Users/vegardjervell/Documents/master/model/venv/lib/python3.9/site-packages/plyer/facades/filechooser.py	open_file.   s    zFileChooser.open_filec                 O   s   | j |ddi|S )z
        Open the file chooser in "save" mode. Confirmation will be asked
        when a file with the same name already exists.
        r   saver   r   r
   r
   r   	save_file4   s    zFileChooser.save_filec                 O   s   | j |ddi|S )z
        Open the directory chooser. Note that on Windows this is very
        limited. Consider writing your own chooser if you target that
        platform and are planning on using unsupported features.
        r   dirr   r   r
   r
   r   
choose_dir;   s    zFileChooser.choose_dirc                 K   s
   t  d S )N)NotImplementedError)r   r	   r
   r
   r   r   E   s    z"FileChooser._file_selection_dialogN)__name__
__module____qualname____doc__r   r   r   r   r
   r
   r
   r   r   )   s
   
r   N)r   r   r
   r
   r
   r   <module>   s   (