global moduleDesktop, currentDesktop, objectsManager
- if not moduleDesktop.has_key( studyID ):
+ if not studyID in moduleDesktop:
moduleDesktop[studyID] = :sat:{PYCMP}Desktop( sgPyQt, sg )
objectsManager = Controller( moduleDesktop[studyID] )
moduleDesktop[studyID].setController( objectsManager )
def OnGUIEvent( commandID ):
"""This method is called when a GUI action is activated"""
- if dict_command.has_key( commandID ):
+ if commandID in dict_command:
dict_command[commandID]()
pass
pass