Mercurial > mamba
view mamba/widgets/overlay.py @ 470:5be1b283f5f0
Whooops, no overlay
author | Stefano Rivera <stefano@rivera.za.net> |
---|---|
date | Sat, 17 Sep 2011 21:45:48 +0200 |
parents | |
children | 9393dc6f5707 |
line wrap: on
line source
from mamba.widgets.base import Button class OverlayButton(Button): """A non-visiable clickable area, that causes an overlay to be display""" def __init__(self, rect, image): self.image = image super(OverlayButton, self).__init__(rect) self.focussable = True def draw(self, surface): if self.focussed: surface.blit(self.image, surface.get_rect())