Salome HOME
Update Help for VISU module.
[modules/visu.git] / src / VISU_SWIG / visu_table.py
index 38641bbd0a37721e8d8179128bc2a14b61b19b59..780e698c04bd26c779193e0ff325abc4d8ffecd3 100644 (file)
@@ -25,7 +25,13 @@ myVisu.SetCurrentStudy(myStudy)
 if not myComponent:
    myComponent = myBuilder.NewComponent("VISU")
    aName = myBuilder.FindOrCreateAttribute(myComponent, "AttributeName")
-   aName.SetValue("Visu")
+   #aName.SetValue("Visu")
+   aName.SetValue( salome.sg.getComponentUserName("VISU") )
+
+   A2 = myBuilder.FindOrCreateAttribute(myComponent, "AttributePixMap");
+   aPixmap = A2._narrow(SALOMEDS.AttributePixMap);
+   aPixmap.SetPixMap( "ICON_OBJBROWSER_Visu" );
+   
    myBuilder.DefineComponentInstance(myComponent,myVisu)
 
 # >>> Creating object with Table of integer ==================================