From: Matt N. <new...@ca...> - 2005-04-11 17:09:24
|
Hi John, These changes to backend_wx(agg).py seem ok to me. Trying to be conservative, I'm not entirely sure whether having the SetExitonFrameDelete() call is necessary (or perhaps more settings for the wxapp should be set....). What's pylab supposed to do in interactive mode if the user closes the plot window after show() but then wants to create and show() another figure? Is pylab supposed to automatically create another window and plot to that new window? This doesn't work for WX. > As for making this more uniform, I'm inclined to leave this it up to > the various backends to handle gui instantiation in the way that they > see fit. I don't know enough about the various GUIs (and potential > GUIs we haven't encountered yet) to enforce a single policy. I did add > some guidance in the backend_template.py new_figure_manager function > along these lines > > # if a main-level app must be created, this is the usual place to > # do it -- see backend_wx, backend_wxagg and backend_tkagg for > # examples. Not all GUIs require explicit instantiation of a > # main-level app (egg backend_gtk, backend_gtkagg) for pylab > > Does this look helpful? Yep, that seems useful. Thanks, --Matt |