Salome HOME
fix python3 and ElementTreePython3.py
[tools/sat.git] / data / templates / PythonComponent / src / PYCMPGUI / PYCMPGUI.py
index 2b31c818c4c7c4cfbf791b7085b5d87578f39699..71a4e0f7e726be2eea9513f22f9fc8e9fe9665c5 100755 (executable)
@@ -181,7 +181,7 @@ def createPopupMenu( popup, context ):
 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