SFML community forums
Bindings - other languages => Python => Topic started by: bobl on February 24, 2010, 09:38:53 pm
-
Before discovering SFML I wrote some stuff in Python/wxpython.
I'm now wondering if the two could "play" nicely together
eg
stop the C++/SFML animation
open a wxpython gui window on top of the SFML animation
& do things like...
show the SFML cursor's x,y values in the gui &
modify them so that the SFML cursor would move on closure of the gui
Any thoughts/advice re this sort of communication would be very much appreciated
edit1:
http://www.sfml-dev.org/forum/viewtopic.php?t=1126&sid=acf2a5245ad6fcd4e925af795cd48b57
explains the difficulties in 2007 of using wxwidgets from python.
I seem to be trying to do the reverse using wxpython from C++
edit2:
Thx for moving this thread.
This may be more of a C++/Python thing than a wxpython/SFML one so I'm trying to embed Python/wxpython into C++.
If it doesn't work I'll come back with some more meaningful questions
so it prolly best to hang fire on answering this thread, for now.
Rgds
-
It is possible with pysfml-cython and wxpython. Here is how: gist (https://gist.github.com/Irwin1138/20308c97ba8b5ac17331b5574aea7f9d).