Wednesday, May 28, 2008

Shoulld i belive this http://www.youtube.com/watch?v=zP2bjzvIPV8

I m having some trouble with Python- and am not sure if I ran in to a bug or not. I have an update() method on a class called Game. The following code doesn t get to the event loop unless I uncomment the print statement. I uncomment print- and it gets there just fine. Everything is tabbed properly- but yahoo answers strips the tabs.

def update(self):
<tab>#print "anything" #then of course it continually prints this.
<tab>for event in pygame.event.get():
<tab><tab>if (event.type == KEYDOWN):
<tab><tab><tab>if pygame.key.name(event.key).upper() == "Q":
<tab><tab><tab><tab>labelPosx += 10

Here are the imports:
import pygame
from pygame.locals import *
import gameEngine

Any help is appreciated. It seems like a bug to me because you shouldn t have to have a print statement to be able to run the event loop.

Any help is appreciated.

Thanks!!
I ve tried that actually... What I had at one time was:

def update(self):
<tab>#print "anything" #then of course it continually prints this.
<tab>for event in pygame.event.get():
<tab><tab>print "made it here"
<tab><tab>if (event.type == KEYDOWN):
<tab><tab><tab>if pygame.key.name(event.key).upper() == "Q":
<tab><tab><tab><tab>labelPosx += 10

I had a made it here print line inside the event loop. If the first print is commented out- it won t make it to the second print statement. Once I uncomment- it displays both. That s why I was thinking it was a bug.

do you know any i really want one and im alowed to get one and pet stores rip you off. im lookingg pleaseeee help

I am thinking about getting one and i want to know do they reaslly need all that fancy stuff like the nice water dishes and hide outs.
I was thinking about getting the following
-30 gallon cage
-log hideout
-dissenfected rocks
-using a plastic tuperware as a water bowl
-petstore climbing branch
-100 watt light
How much would this all cost if i got the cage for free or for cheap[thinking about getting it off craigslist]
will my snake be happy and feel fine in his home?
I want to get a baby one. Maybe 6 to 9 months old

I have a 9 month old male albino burmese and he is healthy and isn t skinny but he only likes to eat 1-2 mice every 4-6 weeks- is this normal? And I can t even remember the last time he shed- its been at LEAST 2 months. The humidity is just right and he has a big water bowl to soak in- but I can t figure out what s wrong. Any advise or opinions would help. Thanks in advance.

No comments: