diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-11-24 23:36:12 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-11-24 23:36:12 +0400 |
commit | 6e28ac2d7b241d9ee859650d58a89e2b7d441ea7 (patch) | |
tree | 5a1aaeb5131a5ca240bd88e93b9fba0bdcaa1f30 /doc/python_api/examples | |
parent | ddfc518caea168ae1882e717ef28a35f91705a14 (diff) |
pep8 edits and avoid naming conflicts with python builtins
Diffstat (limited to 'doc/python_api/examples')
-rw-r--r-- | doc/python_api/examples/bge.texture.1.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/python_api/examples/bge.texture.1.py b/doc/python_api/examples/bge.texture.1.py index 4be6f51de67..918ffc9772d 100644 --- a/doc/python_api/examples/bge.texture.1.py +++ b/doc/python_api/examples/bge.texture.1.py @@ -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") |