Weeble -
You nailed it! Thanks for your help - it is very much appreciated.
Michael
, Dec 31, 2008 at 8:47 PM, Michael Phipps
michael.phi...@bluetie.com wrote:
I am finishing up my first pygame; everything has been fun and easy except
this:
The game is a tetris-like game (with a twist). I have the falling piece as a
sprite. The background is just a bitmap. The pieces that have
the top. Not to mention
that the block sequence is always the same (this is for debugging).
Anyway, if someone wants to take a look, the code is attached...
-Original Message-
From: Michael Phipps [michael.phi...@bluetie.com]
Date: 01/01/2009 13:14
To: pygame-users@seul.org
Subject: Re
Yanom -
A decorator is a method that takes another method as a parameter so that it can
do something. It is usually used for aspect oriented programming.
For example:
def logThisMethodCall(methodCall)
# Do some logging here
@logThisMethodCall
def myMethod(a,b,c)
# do Somthing in here