/usr/lib/python3/dist-packages/pyatspi/tablecell.py is in python3-pyatspi 2.14.0+dfsg-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 | #Copyright (c) 2013 SUSE LLC.
#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.enum import *
from pyatspi.utils import *
from pyatspi.interface import *
__all__ = [
"TableCell",
]
#------------------------------------------------------------------------------
class TableCell(interface):
"""
An interface used by cells in a table.
"""
def get_columnSpan(self):
return Atspi.TableCell.get_column_span(self.obj)
_columnSpanDoc = \
"""
Get the number of columns occupied by this cell.
"""
columnSpan = property(fget=get_columnSpan, doc=_columnSpanDoc)
def get_columnHeaderCells(self):
return Atspi.TableCell.get_column_header_cells(self.obj)
_columnHeaderCellsDoc = \
"""
Get the column headers as an array of cell accessibles.
"""
columnHeaderCells = property(fget=get_columnHeaderCells, doc=_columnHeaderCellsDoc)
def get_rowSpan(self):
return Atspi.TableCell.get_row_span(self.obj)
_rowSpanDoc = \
"""
Get the number of rows occupied by this cell.
"""
rowSpan = property(fget=get_rowSpan, doc=_rowSpanDoc)
def get_rowHeaderCells(self):
return Atspi.TableCell.get_row_header_cells(self.obj)
_rowHeaderCellsDoc = \
"""
Get the row headers as an array of cell accessibles.
"""
rowHeaderCells = property(fget=get_rowHeaderCells, doc=_rowHeaderCellsDoc)
def get_position(self):
return Atspi.TableCell.get_position(self.obj)
_positionDoc = \
"""
Returns the tabular position of this accessible.
"""
position = property(fget=get_position, doc=_positionDoc)
def getRowColumnSpan(self):
"""
determine the row and column indices and span of the given cell.
"""
return Atspi.TableCell.get_row_column_span(self.obj)
def get_table(self):
return Atspi.TableCell.get_table(self.obj)
_tableDoc = \
"""
Returns a reference to the accessible of the containing table.
"""
table = property(fget=get_table, doc=_tableDoc)
#END----------------------------------------------------------------------------
|