pep8 edits and avoid naming conflicts with python builtins

This commit is contained in:
Campbell Barton
2011-11-24 19:36:12 +00:00
parent ddfc518cae
commit 6e28ac2d7b
19 changed files with 65 additions and 55 deletions

View File

@@ -11,13 +11,13 @@ from bge import texture
def createTexture(cont):
"""Create a new Dynamic Texture"""
object = cont.owner
obj = cont.owner
# get the reference pointer (ID) of the internal texture
ID = texture.materialID(object, 'IMoriginal.png')
ID = texture.materialID(obj, 'IMoriginal.png')
# create a texture object
object_texture = texture.Texture(object, ID)
object_texture = texture.Texture(obj, ID)
# create a new source with an external image
url = logic.expandPath("//newtexture.jpg")