Re: OMG please help

2007-12-26 Thread Paul Hankin
On Dec 26, 1:09 am, Steven D'Aprano <[EMAIL PROTECTED] cybersource.com.au> wrote: > On Mon, 24 Dec 2007 17:14:58 +0100, Martin P. Hellwig wrote: > > As Dennis already pointed out I like to use dictionaries in these cases, > > so I would use sand = dict() instead of sands = list() and would do > > s

Re: OMG please help

2007-12-25 Thread Martin P. Hellwig
Steven D'Aprano wrote: > On Mon, 24 Dec 2007 17:14:58 +0100, Martin P. Hellwig wrote: > >> As Dennis already pointed out I like to use dictionaries in these cases, >> so I would use sand = dict() instead of sands = list() and would do >> sand[i] = pygame.image.load(name) >> >> Then you can retriev

Re: OMG please help

2007-12-25 Thread Steven D'Aprano
On Mon, 24 Dec 2007 17:14:58 +0100, Martin P. Hellwig wrote: > As Dennis already pointed out I like to use dictionaries in these cases, > so I would use sand = dict() instead of sands = list() and would do > sand[i] = pygame.image.load(name) > > Then you can retrieve the content by doing sand[you

OMG please help

2007-12-22 Thread katie smith
Here is the program I just started, The problem i am having is I'm trying to get it to load the image file Sand1 with eval(loader) = pygame.image.load(loader) because Loader is euqual to "Sand1" but It wont load it. If I set it as loader = pygame.image.load(loader) then it sets the image to the