changeset 145:a1f0310959b1 sub-sprite

Wire the subsurface() function to be imported with sdl2.ext
author Jan Varho <jan@varho.org>
date Fri, 17 Jan 2014 16:05:32 +0200
parents bb3193f65f33
children b8394474f748
files sdl2/ext/__init__.py sdl2/ext/surface.py
diffstat 2 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/sdl2/ext/__init__.py	Fri Jan 17 15:42:49 2014 +0200
+++ b/sdl2/ext/__init__.py	Fri Jan 17 16:05:32 2014 +0200
@@ -18,4 +18,5 @@
 from .image import *
 from .pixelaccess import *
 from .sprite import *
+from .surface import *
 from .window import *
--- a/sdl2/ext/surface.py	Fri Jan 17 15:42:49 2014 +0200
+++ b/sdl2/ext/surface.py	Fri Jan 17 16:05:32 2014 +0200
@@ -1,6 +1,7 @@
 """Surface manipulation."""
 from ..surface import SDL_CreateRGBSurfaceFrom
 
+__all__ = ["subsurface"]
 
 def subsurface(surface, area):
     """Creates a surface from a part of another surface.