diff options
Diffstat (limited to 'libdimension-python/tests/demo.py')
-rwxr-xr-x | libdimension-python/tests/demo.py | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/libdimension-python/tests/demo.py b/libdimension-python/tests/demo.py index e9cdc7b..187f4ef 100755 --- a/libdimension-python/tests/demo.py +++ b/libdimension-python/tests/demo.py @@ -24,4 +24,15 @@ from dimension import * # Treat warnings as errors for tests dieOnWarnings(True) -scene = Scene() +canvas = Canvas(width = 768, height = 480) + +havePNG = True +try: + canvas.optimizePNG() +except OSError as e: + if e.errno == errno.ENOSYS: + havePNG = False + else: + raise + +scene = Scene(canvas = canvas) |