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

Source Code for Module appModules.sndrec32

 1  #appModules/sndrec32.py 
 2  #A part of NonVisual Desktop Access (NVDA) 
 3  #Copyright (C) 2010 Peter Vagner <peter.v@datagate.sk> 
 4  #This file is covered by the GNU General Public License. 
 5  #See the file COPYING for more details. 
 6   
 7  import appModuleHandler 
 8  import controlTypes 
 9   
10  mainWindowButtonNames={ 
11          205:_("Rewind"), 
12          206:_("Fast forward"), 
13          207:_("Play"), 
14          208:_("Stop"), 
15          209:_("Record") 
16  } 
17   
18 -class AppModule(appModuleHandler.AppModule):
19
20 - def event_NVDAObject_init(self, obj):
21 if obj.role == controlTypes.ROLE_BUTTON: 22 try: 23 obj.name=mainWindowButtonNames[obj.windowControlID] 24 except KeyError: 25 pass
26