Salome HOME
Merge Python 3 porting.
authorrnv <rnv@opencascade.com>
Thu, 22 Jun 2017 14:32:06 +0000 (17:32 +0300)
committerrnv <rnv@opencascade.com>
Thu, 22 Jun 2017 14:32:06 +0000 (17:32 +0300)
1  2 
src/GUI_PY/helper.py
src/LightApp/LightApp_Application.cxx
src/SALOME_PYQT/SALOME_PYQT_GUILight/SALOME_PYQT_PyModule.cxx
src/SALOME_SWIG/test_big_table.py
src/SALOME_SWIG/test_table.py
src/SalomeApp/SalomeApp_Application.cxx
src/SalomeApp/SalomeApp_Study.cxx
src/SalomeApp/pluginsdemo/salome_plugins.py
src/SalomeApp/pluginsdemo/tubebuilder.py
src/SalomeApp/salome_pluginsmanager.py

Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
index e121161c0fad399615103c9c29b53c09733e54a3,cd231842ef4a8a4163573698260fcf07b4e8c300..44e7ec508f351f8ab9d44114f54b4d2821c48343
@@@ -32,8 -32,9 +32,8 @@@ def createGeometry(radius=DEFAULT_RADIU
      This function creates the geometry on the specified study and with
      given parameters.
      '''
-     print "TUBE: creating the geometry ..."
+     print("TUBE: creating the geometry ...")
 -    studyId = study._get_StudyId()
 -    geompy = geomtools.getGeompy(studyId)
 +    geompy = geomtools.getGeompy()
  
      radius_ext = radius
      radius_int = radius_ext - width
@@@ -52,20 -53,21 +52,20 @@@ def createGeometryWithPartition(radius=
  
      # We have to create a partition so that we can use an hexaedric
      # meshing algorithm.
 -    studyId = study._get_StudyId()
 -    geompy = geomtools.getGeompy(studyId)
 +    geompy = geomtools.getGeompy()
  
-     print "TUBE: creating a partition ..."
+     print("TUBE: creating a partition ...")
      toolPlane = geompy.MakeFaceHW(2.1*length,2.1*radius,3)
      partition = geompy.MakePartition([shape], [toolPlane], [], [], geompy.ShapeType["SOLID"], 0, [], 0)
      entry = geompy.addToStudy( partition, "TubeWithPartition" )
      return partition
      
 -def createMesh(study, shape):
 -    '''This function creates the mesh of the specified shape on the specified study'''
 +def createMesh(shape):
 +    '''This function creates the mesh of the specified shape on the current study'''
-     print "TUBE: creating the mesh ..."
+     print("TUBE: creating the mesh ...")
      import SMESH
      from salome.smesh import smeshBuilder
 -    smesh = smeshBuilder.New(study)
 +    smesh = smeshBuilder.New()
  
      mesh = smesh.Mesh(shape)
      Regular_1D = mesh.Segment()