Mercurial > boomslang
view pyntnclick/widgets/overlay.py @ 637:c27087877c84 pyntnclick
Mouse events propagate! Crashes galore!
author | Jeremy Thurgood <firxen@gmail.com> |
---|---|
date | Sun, 12 Feb 2012 00:59:49 +0200 |
parents | 1aac5a3b17e1 |
children | fdc63049b08c |
line wrap: on
line source
from pyntnclick.widgets.base import Button class OverlayButton(Button): """A non-visiable clickable area, that causes an overlay to be displayed. Doesn't really understand this focus thing.""" def __init__(self, rect, image): self.image = image super(OverlayButton, self).__init__(rect) def draw(self, surface): if not self.disabled: surface.blit(self.image, surface.get_rect())