Mercurial > pyntnclick
comparison gamelib/hand.py @ 49:8771d545a493
Remove debugging print
author | Neil Muller <neil@dip.sun.ac.za> |
---|---|
date | Mon, 23 Aug 2010 11:59:41 +0200 |
parents | 79062a225703 |
children | 4f9d412d83db |
comparison
equal
deleted
inserted
replaced
48:7debf2951a82 | 49:8771d545a493 |
---|---|
17 ImageButton.__init__(self, image=this_image, action=action) | 17 ImageButton.__init__(self, image=this_image, action=action) |
18 self.selected = False # Flag if we're selected | 18 self.selected = False # Flag if we're selected |
19 | 19 |
20 def draw(self, surface): | 20 def draw(self, surface): |
21 """Draw the widget""" | 21 """Draw the widget""" |
22 print 'drawing widget', self.selected | |
23 ImageButton.draw(self, surface) | 22 ImageButton.draw(self, surface) |
24 if self.selected: | 23 if self.selected: |
25 rect = surface.get_rect().inflate(-self.sel_width, -self.sel_width) | 24 rect = surface.get_rect().inflate(-self.sel_width, -self.sel_width) |
26 frame_rect(surface, self.sel_colour, rect, self.sel_width) | 25 frame_rect(surface, self.sel_colour, rect, self.sel_width) |
27 | 26 |