Salome HOME
projects
/
modules
/
smesh.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge tag 'V8_3_0a2' into ngr/python3_dev
[modules/smesh.git]
/
src
/
SMESH_PY
/
smeshstudytools.py
diff --git
a/src/SMESH_PY/smeshstudytools.py
b/src/SMESH_PY/smeshstudytools.py
index a043765799c6872dff1abbb53f15badbb03d5c47..1b82fa5deec0f658993e846e06e8d57c98717b2c 100644
(file)
--- a/
src/SMESH_PY/smeshstudytools.py
+++ b/
src/SMESH_PY/smeshstudytools.py
@@
-1,6
+1,6
@@
# -*- coding: utf-8 -*-
#
# -*- coding: utf-8 -*-
#
-# Copyright (C) 2007-201
4
CEA/DEN, EDF R&D, OPEN CASCADE
+# Copyright (C) 2007-201
6
CEA/DEN, EDF R&D, OPEN CASCADE
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
@@
-127,8
+127,8
@@
class SMeshStudyTools:
from salome.smesh import smeshBuilder
smesh = smeshBuilder.New(self.editor.study)
from salome.smesh import smeshBuilder
smesh = smeshBuilder.New(self.editor.study)
- meshObject=s
mesh
.IDToObject(entry)
- return
meshObject
+ meshObject=s
alome
.IDToObject(entry)
+ return
smesh.Mesh( meshObject )
## Returns the SMESH object associated to the specified \em SObject,
# (the SObject is an item in the objects browser).
## Returns the SMESH object associated to the specified \em SObject,
# (the SObject is an item in the objects browser).
@@
-155,7
+155,7
@@
class SMeshStudyTools:
self.smeshGui = salome.ImportComponentGUI("SMESH")
if not helper.SalomeGUI.hasDesktop():
self.smeshGui = salome.ImportComponentGUI("SMESH")
if not helper.SalomeGUI.hasDesktop():
- print
"displayMeshObject: no desktop available"
+ print
("displayMeshObject: no desktop available")
return
self.smeshGui.CreateAndDisplayActor(entry)
return
self.smeshGui.CreateAndDisplayActor(entry)
@@
-207,7
+207,7
@@
def TEST_createBoxMesh():
smesh.SetName(boxmesh.GetMesh(), 'boxmesh')
if salome.sg.hasDesktop():
smesh.SetName(boxmesh.GetMesh(), 'boxmesh')
if salome.sg.hasDesktop():
- salome.sg.updateObjBrowser(
1
)
+ salome.sg.updateObjBrowser(
True
)
#
# Definitions:
#
# Definitions: