+"""Debugging image display.
+
+This is a simple module, that shows images on screen using PyGame.
+It is not used anywhere in the standard UI, serves only for debugging.
+"""
+
try:
import pygame
except ImportError, msg:
sys.exit(1)
def show(image, caption='', name=None):
+ """Initialize PyGame and show the *image*."""
if image.mode != 'RGB':
image = image.convert('RGB')
pygame.init()