python-sfml icon indicating copy to clipboard operation
python-sfml copied to clipboard

pysfml seems reorganized, is there documentation about it yet?

Open iago-lito opened this issue 9 years ago • 2 comments

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? :)

iago-lito avatar Jul 27 '16 20:07 iago-lito

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

fazjaxton avatar Sep 12 '16 03:09 fazjaxton

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

iago-lito avatar Oct 22 '16 13:10 iago-lito