Comment 6 for bug 371825

Revision history for this message
Edward Rosario (geteddy333) wrote :

I need to get the location of an object/node(an icon) present inside a Window and print it.
I used,
ext = node.extents
print 'X, Y co-ordinates %d %d' %(ext[0] , ext[1])

I got the Error, pyspi.pyx : TypeError : an integer is required

Below is the full error description,

Traceback (most recent call last):
  File "test1.py", line 29, in <module>
    ext = node.extents
  File "/usr/lib/pymodules/python2.7/dogtail/tree.py", line 523, in __getattr__
    return self.__component.getExtents()
  File "pyspi.pyx", line 747, in atspi.Component.getExtents
TypeError: an integer is required