Mini Shell

Direktori : /usr/lib/python3.6/site-packages/pyatspi/__pycache__/
Upload File :
Current File : //usr/lib/python3.6/site-packages/pyatspi/__pycache__/selection.cpython-36.opt-1.pyc

3

���X{�@s6ddlmZddlTddlTdgZGdd�de�ZdS)�)�Atspi)�*�	Selectionc@s`eZdZdZdd�Zdd�Zdd�Zdd	�Zd
d�Zdd
�Z	dd�Z
dd�ZdZe
eed�ZdS)ra�
        An interface which indicates that an object exposes a 'selection'
        model, allowing the selection of one or more of its children.
        Read-only Selection instances are possible, in which case the
        interface is used to programmatically determine the selected-ness
        of its children. A selected child has State::STATE_SELECTED,
        and a child which may hypothetically be selected (though possibly
        not programmatically selectable) has State::STATE_SELECTABLE.
        cCstjj|j�S)a@
                Attempt to clear all selections (i.e. deselect all children)
                of a Selection. Not all Selection implementations allow the removal
                of all selections.
                @return True if the selections were successfully cleared, False
                otherwise.
                )rZTextZclear_selection�obj)�self�r�/usr/lib/python3.6/selection.py�clearSelection%szSelection.clearSelectioncCstjj|j|�S)a�
                Remove a child from the selected children list of a Selection,
                if the child is currently selected.
                @param : childIndex
                a long integer (the zero offset index into the Accessible object's
                list of children) indicating which child of the Selection is
                to be selected.
                @return True if the child was successfully selected, False otherwise.
                )rrZdeselect_childr)rZ
childIndexrrr�
deselectChild/s
zSelection.deselectChildcCstjj|j|�S)a
                Remove a child to the selected children list of a Selection.
                @param : selectedChildIndex
                a long integer indicating which of the selected children of the
                Selection is to be deselected. The index is a zero-offset index
                into the 'selected child list', not a zero-offset index into
                the list of all children of the Selection.
                @return True if the child was successfully deselected, False
                otherwise.
                )rrZdeselect_selected_childr)r�indexrrr�deselectSelectedChild;szSelection.deselectSelectedChildcCstjj|j|�S)az
                Get the i-th selected Accessible child of a Selection. 
                @param : selectedChildIndex
                a long integer indicating which of the selected children of an
                object is being requested. 
                @return a pointer to a selected Accessible child object, specified
                by selectedChildIndex.
                )rrZget_selected_childr)rrrrr�getSelectedChildHs	zSelection.getSelectedChildcCstjj|j|�S)a�
                Determine whether a particular child of an Selection implementor
                is currently selected. Note that childIndex is the zero-offset
                index into the standard Accessible container's list of children.
                @param : childIndex
                an index into the Selection's list of children.
                @return True if the specified child is currently selected, False
                otherwise.
                )rrZis_child_selectedr)rrrrr�isChildSelectedSs
zSelection.isChildSelectedcCstjj|j�S)ak
                Attempt to select all of the children of a Selection implementor.
                Not all Selection implementors support this operation (for instance,
                implementations which support only "single selection" do not
                support this operation).
                @return True if successful, False otherwise.
                )rrZ
select_allr)rrrr�	selectAll_szSelection.selectAllcCstjj|j|�S)a@
                Add a child to the selected children list of a Selection. 
                @param : childIndex
                a long integer indicating which child of the Selection is to
                be selected.
                @return True if the child was successfully selected, False otherwise.
                )rrZselect_childr)rrrrr�selectChildiszSelection.selectChildcCstjj|j�S)N)rrZget_n_selected_childrenr)rrrr�get_nSelectedChildrensszSelection.get_nSelectedChildrenz�
                The number of children of a Selection implementor which are currently
                selected.
                )�fget�docN)�__name__�
__module__�__qualname__�__doc__r	r
rr
rrrrZ_nSelectedChildrenDoc�propertyZnSelectedChildrenrrrrrs	



N)Z
gi.repositoryrZ
pyatspi.utilsZpyatspi.interface�__all__Z	interfacerrrrr�<module>s