view pyntnclick/widgets/overlay.py @ 799:a04a876ee369 pyntnclick

Update line numbers in po files
author Neil Muller <neil@dip.sun.ac.za>
date Sun, 27 Jan 2013 13:38:56 +0200
parents fdc63049b08c
children
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, gd, image):
        self.image = image
        super(OverlayButton, self).__init__(rect, gd)

    def draw(self, surface):
        if not self.disabled:
            surface.blit(self.image, surface.get_rect())