From: Georg B. <g.b...@gm...> - 2009-10-22 19:55:21
|
I don't have a patch. I just wrote a key handler that runs the snippet I gave when "q" is pressed. I hope there's a better way to do it anyway :) Georg Jae-Joon Lee schrieb: > 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 -- 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. |