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

Unicode window title support. #55

Closed shizmob closed 11 years ago

shizmob commented 11 years ago

Following https://github.com/LaurentGomila/SFML/pull/351, sf::Window now expects an sf::String to be passed to sf::Window::Window and sf::Window::setTitle. This patch adds a wrapper to convert a Python string to an sf::String and pass the appropriate strings to before-mentioned functions.

This patch also fixes an error where passing no title to RenderWindow would lead to an AttributeError.

bastienleonard commented 11 years ago

Thanks.