#!/usr/bin/python3

import pyatspi

def listener(e):
    try:
        appname = e.source.getApplication().name
    except:
        return
    if appname != "gtk3-demo":
        return

    if e.source.getRole() == pyatspi.ROLE_TABLE_CELL:
        print(e)

pyatspi.Registry.registerEventListener(listener, "object:text-changed:")
pyatspi.Registry.start()
