Can you post your patch so that others can review? Regards, -JJ On Wed, Oct 21, 2009 at 3:23 AM, Georg Brandl <g.b...@gm...> wrote: > Hi, > > one thing I missed when I switched from Gnuplot to matplotlib was that I > can't press "q" to close a window but have to use the window manager; in > one environment I work in that means I have to use the mouse to close a > window. > > I made a custom key handler that does the following: > > try: > event.canvas.manager.destroy() > except AttributeError: > pass > > which seems to work, at least with GtkAgg (I didn't venture to find out > why the AttributeError is raised, it works in spite of that). > > Would it make sense to have that shortcut by default (and working for all > windowing backends)? > > Georg > > -- > Thus spake the Lord: Thou shalt indent with four spaces. No more, no less. > Four shall be the number of spaces thou shalt indent, and the number of thy > indenting shall be four. Eight shalt thou not indent, nor either indent thou > two, excepting that thou then proceed to four. Tabs are right out. > > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > _______________________________________________ > Matplotlib-devel mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-devel >