X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=data%2Ftemplates%2FPythonComponent%2Fsrc%2FPYCMPGUI%2FPYCMPGUI.py;h=71a4e0f7e726be2eea9513f22f9fc8e9fe9665c5;hb=606f9b6618e0e0659d4029c607eaa04d9b3501cc;hp=2b31c818c4c7c4cfbf791b7085b5d87578f39699;hpb=4f84485a534ccc2161fbcb42705bb4acfc1db372;p=tools%2Fsat.git diff --git a/data/templates/PythonComponent/src/PYCMPGUI/PYCMPGUI.py b/data/templates/PythonComponent/src/PYCMPGUI/PYCMPGUI.py index 2b31c81..71a4e0f 100755 --- 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