bastienleonard / pysfml-cython

A Python 2/3 binding for SFML 2, written with Cython
http://pysfml2-cython.readthedocs.org/
Other
68 stars 8 forks source link

shape.size produces an Exception TypeError #39

Closed krychu closed 12 years ago

krychu commented 12 years ago

Hi,

When I try to use shape.size (e.g., var = shape.size) where shape is an instance of sf.RectangleShape I get:

Exception TypeError: TypeError("Expected Vector2f or tuple, found <type 'int'>",) in 'sfml.convert_to_vector2f' ignored (276.0, 276.0)

I guess something is wrong in the getter method of the property size?

Thanks, k

bastienleonard commented 12 years ago

Thanks, it should be fixed now. It was a just a test snippet that I left out. :/

krychu commented 12 years ago

Thanks