import GafferUI imagePath = "/path/to/image.jpg" image = GafferUI.Image(imagePath) window = GafferUI.Window( "Image Viewer" ) window.setChild( image ) window.show()
import GafferUI imagePath = "/path/to/image.jpg" logoPath = "/path/to/logo.png" image = GafferUI.Image(imagePath) logo = GafferUI.Image(logoPath) image.addLayer(logo) window = GafferUI.Window( "Image Viewer" ) window.setChild( image ) window.show()The Python GafferUI Image module is part of the larger Gaffer toolkit, which is available as open source software.