Mercurial > pyntnclick
comparison gamelib/hand.py @ 84:c76f2fad2af5
Draw CursorWidget on top of StateWidget
author | Stefano Rivera <stefano@rivera.za.net> |
---|---|
date | Mon, 23 Aug 2010 23:58:11 +0200 |
parents | 213e47dea4d0 |
children | 97322b78d1c1 |
comparison
equal
deleted
inserted
replaced
83:4fd56ee2af61 | 84:c76f2fad2af5 |
---|---|
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 | |
5 | 4 |
6 from albow.controls import ImageButton | 5 from albow.controls import ImageButton |
7 from albow.resource import get_image | 6 from albow.resource import get_image |
8 from albow.utils import frame_rect | 7 from albow.utils import frame_rect |
9 from pygame.color import Color | 8 from pygame.color import Color |
10 from pygame.rect import Rect | 9 from pygame.rect import Rect |
11 | 10 |
12 class HandButton(ImageButton, CursorWidget): | 11 class HandButton(ImageButton): |
13 """The fancy hand button for the widget""" | 12 """The fancy hand button for the widget""" |
14 | 13 |
15 sel_colour = Color('red') | 14 sel_colour = Color('red') |
16 sel_width = 2 | 15 sel_width = 2 |
17 | 16 |