On 8/22/07, Wolfgang Kerzendorf <[EMAIL PROTECTED]> wrote: > Is there any way I can stop the mainloop of the gtkagg backend. i know > there is a threads_leave thing but I neec the Tk object from matplotlib. > The problem is that my script doesnt continue after the window has been > closed
I am not exactly sure what you are after ... Do you need to use GTKAgg at all, or can you simply set your backend to TkAgg in your matplotlibrc and leave it at that. If for some reason you need GTKAgg, and then need to switch to TkAgg, it may be possible to do this with the "switch_backend" function in pylab. I have done this on occasion with success, but it is mostly experimental. Perhaps if you explain your use case a little better we can advise more. ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users