Salome HOME
projects
/
tools
/
sat.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
fix python3 and ElementTreePython3.py
[tools/sat.git]
/
data
/
templates
/
PythonComponent
/
src
/
PYCMPGUI
/
PYCMPGUI.py
diff --git
a/data/templates/PythonComponent/src/PYCMPGUI/PYCMPGUI.py
b/data/templates/PythonComponent/src/PYCMPGUI/PYCMPGUI.py
index 2b31c818c4c7c4cfbf791b7085b5d87578f39699..71a4e0f7e726be2eea9513f22f9fc8e9fe9665c5 100755
(executable)
--- a/
data/templates/PythonComponent/src/PYCMPGUI/PYCMPGUI.py
+++ b/
data/templates/PythonComponent/src/PYCMPGUI/PYCMPGUI.py
@@
-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