Mercurial > boomslang
comparison pyntnclick/widgets/__init__.py @ 576:1b1ab71535bd pyntnclick
Classify constants, which involves a whole bunch of XXX comments
author | Stefano Rivera <stefano@rivera.za.net> |
---|---|
date | Sat, 11 Feb 2012 16:02:06 +0200 |
parents | c0474fe18b96 |
children | ec13a5a0b213 |
comparison
equal
deleted
inserted
replaced
575:970cdc219e15 | 576:1b1ab71535bd |
---|---|
13 from pygame.color import Color | 13 from pygame.color import Color |
14 from pygame.rect import Rect | 14 from pygame.rect import Rect |
15 from pygame.draw import lines as draw_lines | 15 from pygame.draw import lines as draw_lines |
16 from pygame import mouse | 16 from pygame import mouse |
17 | 17 |
18 from pyntnclick.constants import BUTTON_SIZE | |
19 from pyntnclick.cursor import CursorWidget | 18 from pyntnclick.cursor import CursorWidget |
19 | |
20 # XXX: Need a way to get at the constants. | |
21 from pyntnclick.constants import GameConstants | |
22 BUTTON_SIZE = GameConstants().button_size | |
20 | 23 |
21 | 24 |
22 class BoomLabel(albow.controls.Label): | 25 class BoomLabel(albow.controls.Label): |
23 | 26 |
24 trim_line_top = 0 | 27 trim_line_top = 0 |