<vizinfo>.icon

Set the icon for the info box

 

<vizinfo>.icon(
    texture    

)

 

texture

A texture object to apply as the icon.


Remarks

This command will set the icon of the info box to the given texture. The icon is the image in the corner that the user clicks to shrink/expand the info box.

Return Value

None

Example

info = vizinfo.add('Some message')

#Add our own icon texture
tex = viz.add('icon.jpg')

#Set the info box icon to the texture
info.icon(tex)