C++, Swig, and pyMPI

2005-08-02 Thread stringy
I would like to be able to write a C++ function, to be wrapped into
some python, to be able to communicate over pyMPI. As pyMPI is based on
C++ I figure that this should be possible, although I'm not sure of
where to start. I know the basics of swig and pyMPI, but not how I
would do this.

Does anyone know if this is possible and where to start?

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Need to interrupt to check for mouse movement

2005-07-21 Thread stringy
Cheers for the replies people, but I got it sorted by just whacking in
wx.YieldIfNeeded() in the code before it communicates over the socket.
It's kind of jerky, but it works, where as before I'd click and drag,
and the 3d view wouldn't move for about 20 seconds.

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Couple quick questions from a Python Noob

2005-07-21 Thread stringy
For compiling Python, http://effbot.org/zone/python-compile.htm appears
to have some information, although I've never done it myself, so I
wouldn't know any more on the matter.

Also http://starship.python.net/crew/theller/py2exe/ appears to have
something on Python- .exe

-- 
http://mail.python.org/mailman/listinfo/python-list


Need to interrupt to check for mouse movement

2005-07-20 Thread stringy
I have a program that shows a 3d representation of a cell, depending on
some data that it receives from some C++. It runs with wx.timer(500),
and on wx.EVT_TIMER, it updates the the data, and receives it over the
socket.
In my program I also want to be able to rotate the 3d representation,
and can do so, and all the code works. However, I have a problem in
that while the program is updating itself (pretty much all the time
unless I tell it not to), it won't detect mouse motion, I'm guessing
because it doesn't have time to.

Is there any manual way to get a program to check for mouse movement,
that way I'd be able to check for mouse movement half way through my
updating the data over the socket, and then do the necessary rotations
before it finishes updating the data.

-- 
http://mail.python.org/mailman/listinfo/python-list