# Project name, upper case
STRING(TOUPPER ${PROJECT_NAME} PROJECT_NAME_UC)
-SET(${PROJECT_NAME_UC}_MAJOR_VERSION 8)
-SET(${PROJECT_NAME_UC}_MINOR_VERSION 5)
+SET(${PROJECT_NAME_UC}_MAJOR_VERSION 9)
+SET(${PROJECT_NAME_UC}_MINOR_VERSION 0)
SET(${PROJECT_NAME_UC}_PATCH_VERSION 0)
SET(${PROJECT_NAME_UC}_VERSION
${${PROJECT_NAME_UC}_MAJOR_VERSION}.${${PROJECT_NAME_UC}_MINOR_VERSION}.${${PROJECT_NAME_UC}_PATCH_VERSION})
# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
#
+# -*- coding: utf-8 -*-
import os
################################################
# study-to-context map
-__study2context__ = {}
+#__study2context__ = {}
# current context
-__current_context__ = None
+#__current_context__ = None
+
# ##
# set and return current GUI context
# study ID is passed as parameter
# ##
-def _setContext(studyID):
- global eficasRoot
- if eficasRoot is None:
- return
- global __study2context__, __current_context__
- if studyID not in __study2context__:
- __study2context__[studyID] = GUIcontext()
- pass
- __current_context__ = __study2context__[studyID]
- return __current_context__
+#def _setContext(studyID):
+# global eficasRoot
+# if eficasRoot is None:
+# return
+# global __study2context__, __current_context__
+# if studyID not in __study2context__:
+# __study2context__[studyID] = GUIcontext()
+# pass
+# __current_context__ = __study2context__[studyID]
+# return __current_context__
# -----------------------------------------------------------------------------
# -----------------------------------------------------------------------------
-def setSettings():
- """
- Cette méthode permet les initialisations.
- """
- _setContext(sgPyQt.getStudyId())
+#def setSettings():
+# """
+# Cette méthode permet les initialisations.
+# """
+ #_setContext(sgPyQt.getStudyId())
def activate():
Portage V3.
"""
- setSettings()
+# setSettings()
+ GUIcontext()
# -----------------------------------------------------------------------------
-def activeStudyChanged(ID):
- _setContext(ID)
+#def activeStudyChanged(ID):
+# _setContext(ID)
# -----------------------------------------------------------------------------
from salome.smesh import smeshBuilder
smesh = smeshBuilder.New(theStudy)
smesh.CreateMeshesFromMED(fileName)
- salome.sg.updateObjBrowser(1)
+ salome.sg.updateObjBrowser()
return 1, ""
except:
return (0, "Pb a l import")
# icon = "ICON_COMM_FILE",
comment=str(jdcPath))
- salome.sg.updateObjBrowser(1)
+ salome.sg.updateObjBrowser()
if commEntry:
ok, msgError = True, ''
structElemManager = StructuralElementManager()
elem = structElemManager.createElement(liste_commandes)
elem.display()
- salome.sg.updateObjBrowser(True)
+ salome.sg.updateObjBrowser()
except InvalidParameterError as err:
trStr = self.tr("Invalid parameter for group %(group)s: %(expr)s must be "
"greater than %(minval)g (actual value is %(value)g)")