Box gui how?

I am writing a script in blender and I wonder if anyone knows how to do this:
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("test.test", text='test button')
        data =
        row.template_image(data, "name", data, compact=False)


data =['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…