From fb93a51d7ddbdbce34e7d9b5e2606e6dbcb06964 Mon Sep 17 00:00:00 2001 From: boulant Date: Fri, 28 Oct 2011 16:58:35 +0000 Subject: [PATCH] small fix --- src/SMESH_PY/guihelper.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/SMESH_PY/guihelper.py b/src/SMESH_PY/guihelper.py index 3969835b9..6c727806d 100644 --- a/src/SMESH_PY/guihelper.py +++ b/src/SMESH_PY/guihelper.py @@ -94,7 +94,7 @@ def displaySmeshObject(entry): Display the SMESH object associated to the specified entry (the entry is the identifier of an item in the objects browser). ''' - if not SalomeGUI.hasDesktop(): + if not helper.SalomeGUI.hasDesktop(): print "displayGeomObjects: no desktop available" return SmeshGUI.CreateAndDisplayActor(entry) @@ -158,6 +158,11 @@ def TEST_selectAndExport_02(): exportFileName = "/tmp/"+myName+".unv" myMesh.ExportUNV(exportFileName) +def TEST_display(): + mySObject, myEntry = helper.getSObjectSelected() + displaySmeshObject(myEntry) + if __name__ == "__main__": TEST_selectAndExport_01() TEST_selectAndExport_02() + TEST_display() -- 2.39.2