Hi Darren,
thanks for replying
Hi all,
I'd like to adapt 'animation_blit_qt4.py' to a pure OO approach,
removing pylab from the code and move to something near to
'embedding_in_qt4.py'.
I tried a bit but failed miserably
What I'd like to achieve is use something like in
'embedding_in_qt4.py' but that can be updated using the timerEvent /
startTime paradigm (something similar to gobject.add_idle(func) but
this time for Qt4).
Can someone please give me a help on this?
Can you be more specific? Maybe post what you have along with a description
of how it is failing?
Eheh, sorry for being so generic: I wrote that email from work, while
the code I've worked on was at home
So, the situation is this:
- animation_blit_qt4.py has a nice way to update the graph "online",
using the timerEvent/startTimer
- animation_blit_qt4.py contains pylab staff (I want to avoid using)
- animation_blit_qt4.py uses the backend Qt4Agg not the backend object
- embedding_in_qt4.py uses an OO approach at embedding mpl in a qt4
widget/application.
The ultimate result I want to achieve is to embed mpl in a qt4
application but update the graph in realtime.
So I started modifying animation_blit_qt4.py to make it "more OO"
The attached script "animation_blit_qt4_morph.py" only replaced the
pylab parts with a mix of OO style and pyplot, and the timerEvent just
print the receive event without updating the graph.
As you can see, not much of what I need
What I'd like to achive is something similar to
"embedding_in_qt4_morph.py" but where the graph is updated
automatically like in an animation.
Your help will be appreciated a lot
Thanks,
animation_blit_qt4_morph.py (2.25 KB)
embedding_in_qt4_morph.py (849 Bytes)
···
On Wed, May 27, 2009 at 21:01, Darren Dale <dsdale24@...287...> wrote:
On Wed, May 27, 2009 at 9:11 AM, Sandro Tosi <morph@...10...> wrote:
--
Sandro Tosi (aka morph, morpheus, matrixhasu)
My website: http://matrixhasu.altervista.org/
Me at Debian: http://wiki.debian.org/SandroTosi