SFML community forums

Bindings - other languages => Python => Topic started by: AClockWorkLemon on October 05, 2011, 04:16:36 pm

Title: [ignore] pysfml2-cython build request / weird errors
Post by: AClockWorkLemon on October 05, 2011, 04:16:36 pm
Hiya people!

I was just in the hopes that someone could build/provide their binaries for PySFML2, Python2.7.

Please do not take this as me being lazy! I would compile myself, however i both lack  something to compile on (my main computer is getting repairs, this computer i don't wish to install compilers on), and confidence.

Thanks in advance!

Ninja edit
Or, if possible, a version of PySFML 1.6 without that stupid Image.SetSmooth issue. that'd be eppppiiccc :D

again, thanks in advance

EDIT
PLEASE IGNORE THIS THREAD! I've got it all sorted now :)
Title: [ignore] pysfml2-cython build request / weird errors
Post by: bastien on October 05, 2011, 09:21:03 pm
I currently don't have Windows available, so I'll try to cross-compile on GNU/Linux but it's probably going to take some time before I figure it out (I've never written CMake scripts).
If this fails I guess I can try to build it on someone else's machine. :D
Title: [ignore] pysfml2-cython build request / weird errors
Post by: AClockWorkLemon on October 06, 2011, 02:03:45 am
Oop, computer got fixed sooner than i had thought. I've build PySFML2 and pysfml2-cython, but i've been unable to get them to work. It would seem everything is missing it's methods or something.

This code:
Code: [Select]
from PySFML import sf
App = sf.RenderWindow(sf.VideoMode(200, 200, 32), "Image Blur Reproduction")
App.SetFramerateLimit(30)


Returns the error
Code: [Select]
AttributeError: 'sf.RenderWindow' object has no attribute 'SetFramerateLimit'
but according to the documentation, it does. Is this an error with compile, or just an error in the current binding?
Title: [ignore] pysfml2-cython build request / weird errors
Post by: bastien on October 06, 2011, 03:32:16 am
I changed the API a lot in pysfml2-cython. Look at the examples if you want to get a quick overview, or read the documentation.
Title: [ignore] pysfml2-cython build request / weird errors
Post by: AClockWorkLemon on October 06, 2011, 03:40:25 am
Durp, my bad. thanks for that :)