Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pysfml seems reorganized, is there documentation about it yet? #135

Open
iago-lito opened this issue Jul 27, 2016 · 2 comments
Open

pysfml seems reorganized, is there documentation about it yet? #135

iago-lito opened this issue Jul 27, 2016 · 2 comments

Comments

@iago-lito
Copy link

I am diving back into my scripts after a while, and after having updated pysfml.
Several things seem to have changed. The module have been reorganized so that

import sfml as sf
sf.Window
sf.Vector2
sf.Transform
..

.. no longer works, but they are now available as

sf.window.Window
sf.system.Vector2
sf.graphics.Transform

Also window.recreate seems no longer to exist, maybe replaced by
window.create?

Also window.clear seems no longer to exist, what should this good'ol logic:

window.clear()
# successive calls to window.draw()
window.display()

now be?

Also window.draw seems no longer to exist.. ay, this is getting tricky. ó.ò

Are all this changes documented somewhere yet? Should I get back to older
versions for a while before this new logic is ready? :)

@fazjaxton
Copy link

fazjaxton commented Sep 12, 2016

I had the same problem. Changing the import statement to from sfml import sf worked for me.

@iago-lito
Copy link
Author

It does for imports, cheers :) However, sfml.sf.RenderWindow still no more has a recreate method. Are these changes documented?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants