projekty
/
imago.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
more refactoring on linef
[imago.git]
/
imago_pack
/
im_debug.py
diff --git
a/imago_pack/im_debug.py
b/imago_pack/im_debug.py
index
9916e92
..
d04144a
100644
(file)
--- 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:
try:
import pygame
except ImportError, msg:
@@
-6,6
+12,7
@@
except ImportError, msg:
sys.exit(1)
def show(image, caption='', name=None):
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()
if image.mode != 'RGB':
image = image.convert('RGB')
pygame.init()