On Fri, Nov 13, 2009 at 10:39 AM, Gregor Thalhammer
<gregor.thalham...@i-med.ac.at> wrote:
> 1) I would like to stay independent of the backend, therefore I would
> prefer a approach like in idle_and_timeout
> http://matplotlib.sourceforge.net/examples/event_handling/idle_and_timeout.html
> However, with my default backend WXAgg I do not continuously idle
> events, but only once e.g. after each mouse movement. Can someone give
> me more information about the intended behaviour, current status and
> support of idle events?

I worked on this for a while and thought I had wx working but maybe I
missed something or maybe there is a wx version issue.  The real
stumbling block was tk since it did not have a native idle and I was
stuck trying to make it work with threading.  In and of itself, this
was OK, but it broke CTRL-C in ipython due to problems with cross
thread signal handling.  So I put the project on the back burner.

Perhaps we can borrow some knowledge from the ipython developers who
have recently made good progress here in various GUIs backends.

>
> 2) I want to limit the lifetime of my connection object, that takes care
> of the communication with the microscope stage, so that the connection
> is closed if I close the matplotlib figure. I could not find a
> 'close_event'.  To achieve this I could embed a matplotlib figure into a
> wx frame, but this is somewhat tediuos. For the wxagg backend, does
> somebody know a more simple solution? Do others also feel the need to
> add a close_event? In case, I could try to take care of the wx backend.

Adding a close event at the mpl level should be fairly
straight-forward, and shouldn't require much if any additional GUI
programming since we already handle the window destroy event across
backends for pylab figure management.

JDH

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to