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

Source Code for Module appModules.skype

 1  #appModules/skype.py 
 2  #A part of NonVisual Desktop Access (NVDA) 
 3  #Copyright (C) 2006-2007 NVDA Contributors <http://www.nvda-project.org/> 
 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  import winUser 
10   
11 -class AppModule(appModuleHandler.AppModule):
12
13 - def event_NVDAObject_init(self,obj):
14 if controlTypes.STATE_FOCUSED in obj.states and obj.role not in (controlTypes.ROLE_POPUPMENU,controlTypes.ROLE_MENUITEM): 15 obj.windowHandle=winUser.getGUIThreadInfo(None).hwndFocus 16 obj.windowClassName=winUser.getClassName(obj.windowHandle) 17 if obj.value and obj.windowClassName in ["TMainUserList", "TConversationList", "TInboxList", "TActiveConversationList", "TConversationsControl"] and not obj.role in [controlTypes.ROLE_MENUBAR, controlTypes.ROLE_MENUITEM, controlTypes.ROLE_POPUPMENU]: 18 obj.name=obj.value 19 obj.value=None
20