Last active
February 29, 2016 16:18
-
-
Save neilmanuell/f37246aefb56553e2bc4 to your computer and use it in GitHub Desktop.
immutable int problem
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pyglet | |
def update_image(dt): | |
img = pyglet.image.load(image_paths[count]) | |
#... do other stuff | |
count += 1 #cant do this cause its immutable | |
count = 60 | |
image_paths = get_image_paths() # returns a list | |
pyglet.clock.schedule_interval(update_image, 0.11) | |
pyglet.app.run() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Shoudl be def update_image