X-Git-Url: http://git.tomasm.cz/imago.git/blobdiff_plain/2e09f5b5e012d70ed2d4341d40fe3a01bda68165..8ad37ef82d656775eb955d19cafa736e00dacbae:/imago_pack/im_debug.py?ds=sidebyside diff --git a/imago_pack/im_debug.py b/imago_pack/im_debug.py index 9916e92..d04144a 100644 --- a/imago_pack/im_debug.py +++ b/imago_pack/im_debug.py @@ -1,3 +1,9 @@ +"""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: @@ -6,6 +12,7 @@ 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()