Issue #44 resolved

SpriteFactory renderer= argument

Jordan F
created an issue

I used SpriteFactory with a Texture based renderer and encountered a small flaw in the error description while figuring out how to do so. I was trying to use a Texture renderer and in one of my attemps I left out the renderer argument and recieved this traceback:

factory = sdl2.ext.SpriteFactory(sdl2.ext.TEXTURE)
  File "/usr/local/lib/python3.3/dist-packages/sdl2/ext/sprite.py", line 374, in __init__
    raise ValueError("you have to provide a renderer= argument")
ValueError: you have to provide a renderer= argument

But I think it should say:

factory = sdl2.ext.SpriteFactory(sdl2.ext.TEXTURE)
  File "/usr/local/lib/python3.3/dist-packages/sdl2/ext/sprite.py", line 374, in __init__
    raise ValueError("you have to provide a renderer=argument")
ValueError: you have to provide a renderer=argument

The space caused slight confusion.

Comments (1)

  1. Log in to comment