Advertisement
joanmarie

craptastic

Jun 28th, 2012
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.80 KB | None | 0 0
  1. In [1]: action = acc.queryAction()
  2. In [1]: action == acc
  3. Out[2]: True
  4. In [2]: action.name
  5. Out[3]: 'File'
  6. In [3]: action.get_name()
  7. Out[4]: 'File'
  8. In [4]: action.getName()
  9. ---------------------------------------------------------------------------
  10. TypeError                                 Traceback (most recent call last)
  11. /usr/lib/python2.7/site-packages/pyatspi/__init__.pyc in <module>()
  12. ----> 1 action.getName()
  13.  
  14. /usr/lib64/python2.7/site-packages/gi/types.pyc in function(*args, **kwargs)
  15.      41
  16.      42     def function(*args, **kwargs):
  17. ---> 43         return info.invoke(*args, **kwargs)
  18.      44     function.__info__ = info
  19.      45     function.__name__ = info.get_name()
  20.  
  21. TypeError: get_name() takes exactly 2 arguments (1 given)
  22. In [5]: action.getName(0)
  23. Out[6]: 'click'
  24. In [6]:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement