Image.name Box gui how?

I am writing a script in blender and I wonder if anyone knows how to do this:
http://i45.tinypic.com/2nrgf8p.jpg
for the gui in blender.


row.template_image(<i>data</i>, <i>property</i>, <i>image_user</i>, <i>compact=False</i>)

Could you give an example of how to implement it please?

I have this code:


class Botones(bpy.types.Panel):
    bl_label = "Title"
    bl_space_type = "VIEW_3D"
    bl_region_type = "TOOLS"
    def draw(self, context):
        layout = self.layout
        row = layout.row(align=True)
        col = row.column()
        col.alignment = 'EXPAND'

        col.operator("object.custom_path")
        col.prop(context.scene,"IBPath")       

        col.operator("test.test", text='test button')
        data = bpy.data.textures
        row.template_image(data, "name", data, compact=False)

thanks


data = bpy.data.textures['textureA']
row.template_image(data, 'image', data.image_user)    #compact is false by default

Thank you very much!!! :slight_smile:

Happy to help. Blend on…