Advertisement
Guest User

Untitled

a guest
Jul 22nd, 2014
189
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. def mysurface(object):
  2. def __init__(self, surface):
  3. self._surface = surface
  4.  
  5. def blit(self, source, dest, area=None, special_flags = 0):
  6. return self._surface.blit(source, dest, area, special_flags)
  7.  
  8. # code to forward all the other members
  9.  
  10. def myblit(self, source, dest):
  11. # code that modifies source and dest
  12. return self._surface.blit(source, dest)
  13.  
  14. mysurf = mysurface(pygame.display.set_mode())
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement