diff 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
line wrap: on
line diff
--- a/pyntnclick/widgets/__init__.py	Sat Feb 11 16:01:33 2012 +0200
+++ b/pyntnclick/widgets/__init__.py	Sat Feb 11 16:02:06 2012 +0200
@@ -15,9 +15,12 @@
 from pygame.draw import lines as draw_lines
 from pygame import mouse
 
-from pyntnclick.constants import BUTTON_SIZE
 from pyntnclick.cursor import CursorWidget
 
+# XXX: Need a way to get at the constants.
+from pyntnclick.constants import GameConstants
+BUTTON_SIZE = GameConstants().button_size
+
 
 class BoomLabel(albow.controls.Label):