Mercurial > pyntnclick
comparison gamelib/hand.py @ 70:213e47dea4d0
Funkier cursor handling
author | Neil Muller <neil@dip.sun.ac.za> |
---|---|
date | Mon, 23 Aug 2010 20:54:04 +0200 |
parents | 4f9d412d83db |
children | c76f2fad2af5 |
comparison
equal
deleted
inserted
replaced
69:d4bbb26099cc | 70:213e47dea4d0 |
---|---|
1 # Button for the hand image | 1 # Button for the hand image |
2 | 2 |
3 from constants import BUTTON_SIZE | 3 from constants import BUTTON_SIZE |
4 from cursor import CursorWidget | |
4 | 5 |
5 from albow.controls import ImageButton | 6 from albow.controls import ImageButton |
6 from albow.resource import get_image | 7 from albow.resource import get_image |
7 from albow.utils import frame_rect | 8 from albow.utils import frame_rect |
8 from pygame.color import Color | 9 from pygame.color import Color |
9 from pygame.rect import Rect | 10 from pygame.rect import Rect |
10 | 11 |
11 class HandButton(ImageButton): | 12 class HandButton(ImageButton, CursorWidget): |
12 """The fancy hand button for the widget""" | 13 """The fancy hand button for the widget""" |
13 | 14 |
14 sel_colour = Color('red') | 15 sel_colour = Color('red') |
15 sel_width = 2 | 16 sel_width = 2 |
16 | 17 |