home *** CD-ROM | disk | FTP | other *** search
/ Revista do CD-ROM 124 / cd-rom 124.iso / edu / tuxmath / tuxmathscrabble / asymptopia / Button.py < prev    next >
Encoding:
Python Source  |  2003-07-26  |  1.4 KB  |  38 lines

  1. #!/usr/bin/env python
  2. """
  3. /***************************************************************************
  4.  
  5.     Author             :Charles B. Cosse 
  6.     
  7.     Email            :ccosse@asymptopia.com
  8.                     
  9.     Copyright        :(C) 2002,2003 Asymptopia Software.
  10.     
  11.  ***************************************************************************/
  12. /***************************************************************************
  13.                           Button.py
  14.  
  15.  ***************************************************************************/
  16.  
  17. /***************************************************************************
  18.  *                                                                         *
  19.  *   This program is free software; you can redistribute it and/or modify  *
  20.  *   it under the terms of the GNU General Public License as published by  *
  21.  *   the Free Software Foundation; either version 2 of the License, or     *
  22.  *   (at your option) any later version. (Please note that if you use this *
  23.  *   code you must give credit by including the Author and Copyright       *
  24.  *   info at the top of this file).                                        *
  25.  ***************************************************************************/
  26.  
  27. """
  28.  
  29. import pygame,os
  30. from pygame.locals import *
  31. from myutil import *
  32.  
  33. class Button(pygame.sprite.Sprite):
  34.     def __init__(self,fname):
  35.         pygame.sprite.Sprite.__init__(self)
  36.         self.image,self.rect=load_image(fname,-1)
  37.         
  38.