Mini Shell

Direktori : /lib/python3.6/site-packages/pyatspi/__pycache__/
Upload File :
Current File : //lib/python3.6/site-packages/pyatspi/__pycache__/editabletext.cpython-36.pyc

3

���X�@s6ddlTddlmZddlTdgZGdd�de�ZdS)�)�*)�Atspi�EditableTextc@s@eZdZdZdd�Zdd�Zdd�Zdd	�Zd
d�Zdd
�Z	dS)ra
        Derived from interface Text, EditableText provides methods for
        modifying textual content of components which support editing.
        EditableText also interacts with the system clipboard via copyText,
        cutText, and pasteText.
        cCstjj|j||�S)av
                Copy a range of text into the system clipboard. 
                @param : startPos
                the character offset of the first character in the range of text
                being copied. 
                @param : endPos
                the offset of the first character past the end of the range of
                text being copied.
                )rrZ	copy_text�obj)�self�start�end�r	�"/usr/lib/python3.6/editabletext.py�copyText!s
zEditableText.copyTextcCstjj|j||�S)a�
                Excise a range of text from a Text object, copying it into the
                system clipboard. 
                @param : startPos
                the character offset of the first character in the range of text
                being cut. 
                @param : endPos
                the offset of the first character past the end of the range of
                text being cut. 
                @return True if the text was successfully cut, False otherwise.
                )rrZcut_textr)rrrr	r	r
�cutText-szEditableText.cutTextcCstjj|j||�S)a
                Excise a range of text from a Text object without copying it
                into the system clipboard. 
                @param : startPos
                the character offset of the first character in the range of text
                being deleted. 
                @param : endPos
                the offset of the first character past the end of the range of
                text being deleted. 
                @return True if the text was successfully deleted, False otherwise.
                )rrZdelete_textr)rrrr	r	r
�
deleteText;szEditableText.deleteTextcCstjj|j|||�S)a;
                Insert new text contents into an existing text object at a given
                location, while retaining the old contents. 
                @param : position
                the character offset into the Text implementor's content at which
                the new content will be inserted. 
                @param : text
                a UTF-8 string of which length characters will be inserted into
                the text object's text buffer. 
                @param : length
                the number of characters of text to insert. If the character
                count of text is less than or equal to length, the entire contents
                of text will be inserted.
                @return True if the text content was successfully inserted, False
                otherwise.
                )rrZinsert_textr)r�position�textZlengthr	r	r
�
insertTextIszEditableText.insertTextcCstjj|j|�S)a�
                Copy the text contents of the system clipboard, if any, into
                a Text object, inserting it at a particular character offset.
                @param : position
                the character offset before which the text will be inserted.
                @return True if the text was successfully pasted into the Text
                object, False otherwise.
                )rrZ
paste_textr)rrr	r	r
�	pasteText\s	zEditableText.pasteTextcCstjj|j|�S)at
                Replace the text contents with a new string, discarding the old
                contents.
                @param : newContents
                a UTF-8 string with which the text object's contents will be
                replaced. 
                @return True if the text content was successfully changed, False
                otherwise.
                )rrZset_text_contentsr)r�contentsr	r	r
�setTextContentsgs
zEditableText.setTextContentsN)
�__name__�
__module__�__qualname__�__doc__rrr
rrrr	r	r	r
rsN)Zpyatspi.textZ
gi.repositoryrZ
pyatspi.utils�__all__ZTextrr	r	r	r
�<module>s