OSDN Git Service

Add LiveText and Terminal behavior NVDAObjects to facilitate automatic reporting...
authorJames Teh <jamie@jantrid.net>
Tue, 9 Nov 2010 00:36:17 +0000 (10:36 +1000)
committerJames Teh <jamie@jantrid.net>
Tue, 9 Nov 2010 00:36:17 +0000 (10:36 +1000)
commit8cd20b659bd3a80fd75ee69717791b0b1b95ef8e
tree8a8a001f50132c0c73e6c3243d194a9a3f14e67c
parent7efc64bcb132f961ad28c0fcc4f1fa65fd046efd
Add LiveText and Terminal behavior NVDAObjects to facilitate automatic reporting of new text for objects from which text can be retrieved and which notify of text changes, but do not specify the exact new text.
A background monitor thread is notified when the text changes and calculates the changed text using difflib.
This code is based on the monitor code in winConsoleHandler, but has been abstracted and significantly cleaned up. A future commit will probably start using this new code for winConsole.
source/NVDAObjects/behaviors.py