Package appModules :: Module symphony
[hide private]
[frames] | no frames]

Source Code for Module appModules.symphony

 1  #appModules/soffice.py 
 2  #A part of NonVisual Desktop Access (NVDA) 
 3  #This file is covered by the GNU General Public License. 
 4  #See the file COPYING for more details. 
 5  #Copyright (C) 2006-2010 Michael Curran <mick@kulgan.net> 
 6   
 7  import appModuleHandler 
 8  import controlTypes 
 9  from NVDAObjects.window import Window 
10  from NVDAObjects.IAccessible import IAccessible 
11   
12 -class AppModule(appModuleHandler.AppModule):
13
14 - def event_valueChange(self,obj,nextHandler):
15 #Ignore value changes from an annoying progress bar which is a child of the main window 16 #that keeps moving due to application performance 17 if isinstance(obj,IAccessible) and obj.role==controlTypes.ROLE_PROGRESSBAR: 18 windowParent=Window._get_parent(obj) 19 if windowParent and windowParent.windowClassName=="SWT_Window0": 20 return 21 return nextHandler()
22