X7ROOT File Manager
Current Path:
/usr/lib/python2.7/site-packages/pyatspi
usr
/
lib
/
python2.7
/
site-packages
/
pyatspi
/
📁
..
📄
Accessibility.py
(11.09 KB)
📄
Accessibility.pyc
(14.53 KB)
📄
Accessibility.pyo
(14.53 KB)
📄
__init__.py
(993 B)
📄
__init__.pyc
(467 B)
📄
__init__.pyo
(467 B)
📄
action.py
(4.85 KB)
📄
action.pyc
(4.91 KB)
📄
action.pyo
(4.91 KB)
📄
appevent.py
(3.66 KB)
📄
appevent.pyc
(3.42 KB)
📄
appevent.pyo
(3.42 KB)
📄
application.py
(2.78 KB)
📄
application.pyc
(2.63 KB)
📄
application.pyo
(2.63 KB)
📄
atspienum.py
(1.39 KB)
📄
atspienum.pyc
(1 KB)
📄
atspienum.pyo
(1 KB)
📄
collection.py
(3.96 KB)
📄
collection.pyc
(4.11 KB)
📄
collection.pyo
(4.11 KB)
📄
component.py
(6.72 KB)
📄
component.pyc
(6.72 KB)
📄
component.pyo
(6.72 KB)
📄
constants.py
(4.7 KB)
📄
constants.pyc
(3.29 KB)
📄
constants.pyo
(3.29 KB)
📄
deviceevent.py
(9.33 KB)
📄
deviceevent.pyc
(11.96 KB)
📄
deviceevent.pyo
(11.96 KB)
📄
document.py
(3.6 KB)
📄
document.pyc
(3.55 KB)
📄
document.pyo
(3.55 KB)
📄
editabletext.py
(5.02 KB)
📄
editabletext.pyc
(5.05 KB)
📄
editabletext.pyo
(5.05 KB)
📄
hypertext.py
(2.76 KB)
📄
hypertext.pyc
(2.48 KB)
📄
hypertext.pyo
(2.48 KB)
📄
image.py
(4.64 KB)
📄
image.pyc
(4.6 KB)
📄
image.pyo
(4.6 KB)
📄
interface.py
(980 B)
📄
interface.pyc
(862 B)
📄
interface.pyo
(862 B)
📄
registry.py
(17.8 KB)
📄
registry.pyc
(15.55 KB)
📄
registry.pyo
(15.55 KB)
📄
role.py
(13.09 KB)
📄
role.pyc
(10.21 KB)
📄
role.pyo
(10.21 KB)
📄
selection.py
(5.62 KB)
📄
selection.pyc
(5.8 KB)
📄
selection.pyo
(5.8 KB)
📄
state.py
(5.34 KB)
📄
state.pyc
(4.37 KB)
📄
state.pyo
(4.37 KB)
📄
table.py
(15.39 KB)
📄
table.pyc
(16.91 KB)
📄
table.pyo
(16.91 KB)
📄
tablecell.py
(3.08 KB)
📄
tablecell.pyc
(3.06 KB)
📄
tablecell.pyo
(3.06 KB)
📄
text.py
(30.98 KB)
📄
text.pyc
(31.63 KB)
📄
text.pyo
(31.63 KB)
📄
utils.py
(13.82 KB)
📄
utils.pyc
(15.21 KB)
📄
utils.pyo
(15.21 KB)
📄
value.py
(2.8 KB)
📄
value.pyc
(2.61 KB)
📄
value.pyo
(2.61 KB)
Editing: selection.py
#Copyright (C) 2008 Codethink Ltd #Copyright (C) 2010-2011 Novell, inc. #This library is free software; you can redistribute it and/or #modify it under the terms of the GNU Lesser General Public #License version 2 as published by the Free Software Foundation. #This program is distributed in the hope that it will be useful, #but WITHOUT ANY WARRANTY; without even the implied warranty of #MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #GNU General Public License for more details. #You should have received a copy of the GNU Lesser General Public License #along with this program; if not, write to the Free Software #Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. from gi.repository import Atspi from pyatspi.utils import * from pyatspi.interface import * __all__ = [ "Selection", ] #------------------------------------------------------------------------------ class Selection(interface): """ 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. """ def clearSelection(self): """ 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. """ return Atspi.Text.clear_selection(self.obj) def deselectChild(self, childIndex): """ 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. """ return Atspi.Selection.deselect_child(self.obj, childIndex) def deselectSelectedChild(self, index): """ 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. """ return Atspi.Selection.deselect_selected_child(self.obj, index) def getSelectedChild(self, index): """ 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. """ return Atspi.Selection.get_selected_child(self.obj, index) def isChildSelected(self, index): """ 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. """ return Atspi.Selection.is_child_selected(self.obj, index) def selectAll(self): """ 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. """ return Atspi.Selection.select_all(self.obj) def selectChild(self, index): """ 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. """ return Atspi.Selection.select_child(self.obj, index) def get_nSelectedChildren(self): return Atspi.Selection.get_n_selected_children(self.obj) _nSelectedChildrenDoc = \ """ The number of children of a Selection implementor which are currently selected. """ nSelectedChildren = property(fget=get_nSelectedChildren, doc=_nSelectedChildrenDoc) #END----------------------------------------------------------------------------
Upload File
Create Folder