Mercurial > boomslang
view pyntnclick/widgets/imagebutton.py @ 602:1aac5a3b17e1 pyntnclick
Remove anything that has to do with focus (hopefully not breaking anything)
author | Stefano Rivera <stefano@rivera.za.net> |
---|---|
date | Sat, 11 Feb 2012 20:05:22 +0200 |
parents | 0ae62d824d2f |
children | 08647ef4d324 |
line wrap: on
line source
from pyntnclick.widgets.base import Button class ImageButtonWidget(Button): """An image that is also a button. Whatever next?""" def __init__(self, rect, image): super(ImageButtonWidget, self).__init__(rect) self.image = image def draw(self, surface): surface.blit(self.image, self.rect)