Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: SFML and wxpython playing nicely  (Read 3093 times)

0 Members and 1 Guest are viewing this topic.

bobl

  • Newbie
  • *
  • Posts: 18
    • View Profile
SFML and wxpython playing nicely
« 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:
Code: [Select]

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

Chikubi

  • Newbie
  • *
  • Posts: 4
    • View Profile
Re: SFML and wxpython playing nicely
« Reply #1 on: July 15, 2016, 11:37:12 am »
It is possible with pysfml-cython and wxpython. Here is how: gist.

 

anything