3
6ßL]ž  ã               @   s<   d dl mZmZmZmZmZ ddlmZ G dd„ deƒZdS )é    )ÚBoolÚEventÚInstanceÚ	InterfaceÚUnicodeé   )Ú
IBindEventc               @   sd   e Zd ZdZeeƒZedƒZe	Z
eedƒƒZddd„Zddd	„Zd
d„ Zdd„ Zdd„ Zdd„ ZdS )ÚIScriptManagera   The script manager interface.  A script manager is responsible for the
    recording of appropriately annotated user actions as scripts that can be
    executed without user intervention at a later time.  Typically an
    application would have a single script manager.
    Fz(apptools.appscripting.api.IScriptManagerNÚuniquec             C   s   dS )aß   Bind obj to name and make (by default) its public methods and
        traits (ie. those not beginning with an underscore) scriptable.  The
        default value of name is the type of obj with the first character
        forced to lower case.

        bind_policy determines what happens if the name is already bound.  If
        the policy is 'auto' then a numerical suffix will be added to the name,
        if necessary, to make it unique.  If the policy is 'unique' then an
        exception is raised.  If the policy is 'rebind' then the previous
        binding is discarded.  The default is 'unique'

        If api is given then it is a class, or a list of classes, that define
        the attributes that will be made scriptable.

        Otherwise if includes is given it is a list of names of attributes that
        will be made scriptable.

        Otherwise all the public attributes of scripted_type will be made
        scriptable except those in the excludes list.
        N© )ÚselfÚobjÚnameÚbind_policyÚapiÚincludesÚexcludesr   r   úL/tmp/pip-install-5sebvq2j/apptools/apptools/appscripting/i_script_manager.pyÚbind8   s    zIScriptManager.bindc             C   s   dS )a&   Bind factory to name.  This does the same as the bind() method
        except that it uses a factory that will be called later on to create
        the object only if the object is needed.

        See the documentation for bind() for a description of the remaining
        arguments.
        Nr   )r   Úfactoryr   r   r   r   r   r   r   r   Úbind_factoryO   s    zIScriptManager.bind_factoryc             C   s   dS )zF Run the given script, either a string or a file-like object.
        Nr   )r   Úscriptr   r   r   ÚrunY   s    zIScriptManager.runc             C   s   dS )z$ Run the given script file.
        Nr   )r   Ú	file_namer   r   r   Úrun_file]   s    zIScriptManager.run_filec             C   s   dS )zÀ Start the recording of user actions.  The 'script' trait is cleared
        and all subsequent actions are added to 'script'.  The 'recording'
        trait is updated appropriately.
        Nr   )r   r   r   r   Ústart_recordinga   s    zIScriptManager.start_recordingc             C   s   dS )zf Stop the recording of user actions.  The 'recording' trait is
        updated appropriately.
        Nr   )r   r   r   r   Ústop_recordingg   s    zIScriptManager.stop_recording)Nr
   NNN)r
   NNN)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r   Z
bind_eventr   Z	recordingr   r   r   Zscript_updatedr   r   r   r   r   r   r   r   r   r   r	      s   	 
 
	r	   N)	Z
traits.apir   r   r   r   r   Zi_bind_eventr   r	   r   r   r   r   Ú<module>   s   