comparison pyntnclick/widgets/__init__.py @ 585:ec13a5a0b213 pyntnclick

FIXED: Yes, thank you.
author Simon Cross <hodgestar+bzr@gmail.com>
date Sat, 11 Feb 2012 16:51:39 +0200
parents 1b1ab71535bd
children 3ce19d33b51f
comparison
equal deleted inserted replaced
584:96ff2d8a8a9a 585:ec13a5a0b213
148 148
149 class HandButton(albow.controls.Image): 149 class HandButton(albow.controls.Image):
150 """The fancy hand button for the widget""" 150 """The fancy hand button for the widget"""
151 151
152 def __init__(self, action): 152 def __init__(self, action):
153 # FIXME: Yes, please.
154 this_image = get_image('items', 'hand.png') 153 this_image = get_image('items', 'hand.png')
155 albow.controls.Image.__init__(self, image=this_image) 154 albow.controls.Image.__init__(self, image=this_image)
156 self.action = action 155 self.action = action
157 self.set_rect(Rect(0, 0, BUTTON_SIZE, BUTTON_SIZE)) 156 self.set_rect(Rect(0, 0, BUTTON_SIZE, BUTTON_SIZE))
158 157