Mercurial > boomslang
diff gamelib/cursor.py @ 124:97322b78d1c1
Minor style cleanups
author | Neil Muller <neil@dip.sun.ac.za> |
---|---|
date | Tue, 24 Aug 2010 17:55:47 +0200 |
parents | 5e704ee7b84b |
children | 4223d66d88b4 |
line wrap: on
line diff
--- a/gamelib/cursor.py Tue Aug 24 17:47:13 2010 +0200 +++ b/gamelib/cursor.py Tue Aug 24 17:55:47 2010 +0200 @@ -9,6 +9,7 @@ import pygame.cursors import pygame.mouse + class CursorSprite(Sprite): "A Sprite that follows the Cursor" @@ -20,6 +21,7 @@ def update(self): self.rect.midtop = mouse.get_pos() + class CursorWidget(Widget): """Mix-in widget to ensure that mouse_move is propogated to parents"""