<component-author>SALOME team</component-author>
<component-version>@SALOMEATOMGEN_VERSION@</component-version>
<component-comment>Sample Python-based component</component-comment>
- <component-multistudy>1</component-multistudy>
<component-icone>ATOMGEN.png</component-icone>
<constraint>'linux' ~ OS</constraint>
global __entry2IOR__
__entry2IOR__.clear()
import StringIO, pickle
- study = component.GetStudy()
+ study = salome.myStudy
self.study = study
iter = study.NewChildIterator(component)
data = []
return __entry2IOR__[persistentID]
return ""
- def Close( self, component ):
+ def Close( self ):
"""
Called when study is closed
"""
- study = component.GetStudy()
+ study = salome.myStudy
if self.studyData:
self.studyData = None
if study == self.study: