(Newbie Alert!!!)
Blender 2.7a
Windows
I can assign an image to a cube and it appears textured in Texture mode, but the python script done in the Compositing mode is not made available to me.
To do this
1) Go to edit mode
2) Mesh.Uv Unwrap.Unwrap
3) Change to compositing mode
4) Select the image
5) Ensure the material has 'Face Textures' checked
I found examples to assign the image texture to the Cube using python elsewhere, but the texture is not displayed when rendering in TextureMode